[ad_1]
Hi @aditya-nath-jha,
Alright, please follow these instructions:
#1 Go to Appearance > Widgets > [Your sidebar] and add a Custom HTML widget right below your “Trending” one.
#2 Set a title for your Custom HTML widget (eg. Trending).
#3 Insert the following shortcode into the Custom HTML widget:
[wpp limit=10 range="last30days" post_type="post" stats_views=0 stats_category=1 wpp_start="<ul class="wpp-list wpp-cards-compact">" post_html="<li class="{current_class}">{thumb_img}<div class="wpp-item-data"><div class="taxonomies">{taxonomy}</div>{title}</div></li>" wpp_end='</ul>']#4 Save changes.
#5 Add this PHP code snippet to your site, either via your theme’s functions.php or via the Code Snippets plugin for example:
add_filter( 'widget_text', 'do_shortcode' );#6 Add these CSS rules either to your theme’s style.css stylesheet or via Appearance > Customize > Additional CSS.
