File "singlesidebar.php"

Full Path: /home/mba/public_html/wp-content-20250807152928/themes/twentytwenty-child-theme/singlesidebar.php
File size: 3.36 KB
MIME-type: text/html
Charset: utf-8

  <div class="col-md-4" id="sidebar">
			
                <div class="jl_sidebar_w">
                    
                    <div id="sprasa_recent_post_text_widget-9" class="widget post_list_widget">
                        <div class="widget_jl_wrapper">
                            <div class="ettitle">
                                <div class="widget-title"><h2 class="jl_title_c">Business</h2></div>
                            </div>
                            <div class="bt_post_widget">
							
							<?php $args = array( 'post_type' => 'post','posts_per_page' => '5','post_status'    => 'publish','category_name'=>'Business','orderby' => 'publish_date','order' => 'DESC',);
					$posts = get_posts( $args );

					 foreach ($posts as $post) :  
					 setup_postdata($post);
					 
					$date = get_the_date();
					$category = get_the_category($post);
					$thumb_id = get_post_thumbnail_id(get_the_ID());
					$alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
					if(empty($alt)){
						$alt= "featured Image";
					}
					?>
                                <div class="jl_m_right jl_sm_list jl_ml jl_clear_at">
                                    <div class="jl_m_right_w">
                                        <div class="jl_m_right_img jl_radus_e">
										
                                            <a href="<?php the_permalink(); ?>">
                                                <img width="100" alt="image" height="100" src="<?php echo get_the_post_thumbnail_url(get_the_ID(),"full");?>" 
												class="attachment-sprasa_small_feature size-sprasa_small_feature wp-post-image"
												alt="" loading="lazy" />
                                            </a>
                                        </div>
                                        <div class="jl_m_right_content">
                                            <h3 class="entry-title">
											<a href="<?php the_permalink(); ?>" tabindex="-1"><?php the_title(); ?></a>
											</h3>
                                            <span class="jl_post_meta">
                                                <span class="jl_author_img_w"><i class="jli-user"></i><a href="<?php echo get_author_posts_url($post->post_author);?>" title="Posts by <?php echo strtoupper(get_the_author()); ?>" rel="author"><?php echo strtoupper(get_the_author()); ?></a></span><span class="post-date"><i class="jli-pen"></i><?php echo $date; ?></span>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                               <?php  
					endforeach; 
					wp_reset_postdata();
					?> 
                                
                               
                            </div>
                        </div>
                    </div>
                    <div id="sprasa_ads300x250_widget-2" class="widget jellywp_ads300x250_widget">
                        <div class="widget_jl_wrapper ads_widget_container">
                           
                            <div class="ads300x250-thumb jl_radus_e">
                                <a href="#"><img src="https://millionaire-business-articles.com/wp-content/uploads/2020/09/milor.jpg" alt="" /></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>