• Resolved TheTJ

    (@measuringflower)


    Can someone please visit my website, check my sidebar, and confirm–I’m fine, don’t need to do anything with the popular posts widget, right? I don’t I am using the “classic” one?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @measuringflower,

    From the source code of your site you seem to be using the “classic” widget on your site’s sidebar.

    Is this what you see when you visit WP Dashboard > Appearance > Widgets?

    If the answer is yes then yeah you’re using the classic widget and you should replace it either with the [wpp] shortcode (I can provide assistance with this if you share the settings you’re using with the classic WPP widget) or the WordPress Popular Posts block (this might require making changes to your site so you can use WordPress blocks on it).

    Thread Starter TheTJ

    (@measuringflower)

    Okay. Thank you. I tried inserting the shortcode. No idea if I did it right. How do I get to be styled like my classic one? I left the old one and the new up so you can look.

    Screenshots:

    https://tjstaste.com/tjstaste-uploads/2023/10/part-1.png
    https://tjstaste.com/tjstaste-uploads/2023/10/part-2.png
    https://tjstaste.com/tjstaste-uploads/2023/10/part-3.png
    https://tjstaste.com/tjstaste-uploads/2023/10/part-4.png

    Thread Starter TheTJ

    (@measuringflower)

    Here it is with block on post (again, correct me if doing wrong, I’m playing with it now so if it keeps changing over next 10 mins that’s why): https://tjstaste.com/23755-2/

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks, those screenshots helped!

    Alright, please try this:

    #1 Go to Appearance > Widgets > [Your sidebar] and add a Custom HTML widget right below your “Trending Now” one.

    #2 Set a title for your Custom HTML widget (eg. Trending Now ).

    #3 Insert the following shortcode into the Custom HTML widget:

    [wpp limit=5 range='last7days' order_by='avg' post_type='post' cat=4 title_length=49 excerpt_length=50 thumbnail_width=200 thumbnail_height=200 stats_views=0 wpp_start='<ul class="wpp-list">' post_html='<li>{thumb} <h5>{title}</h5>{excerpt}</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' );

    If everything went well the shortcode should list your Trending Now posts right under the “classic” widget.

    Please report back your results.

    Thread Starter TheTJ

    (@measuringflower)

    Perfect! Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Could Someone Confirm?’ is closed to new replies.