• Resolved deeveearr

    (@deeveearr)


    Hi Hector,

    I’m using a popular posts grid on my website (following your tutorial on how to make one), and directly above the grid, there’s a horrible message about the popular posts widget going away.

    At present, I’m using Classic Editor, along with Classic Widgets.

    Does my post grid only have days left to live?

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

    (@hcabrera)

    Hi @deeveearr!

    No, it doesn’t have “days to live” ?? It won’t go away like tomorrow so there’s still time. Just wanted to give some heads up that you guys need to replace that widget with the either the WordPress Popular Posts block or the shortcode.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Oh, and thanks for reminding me about the tutorial. I guess I need to update that too now haha.

    Thread Starter deeveearr

    (@deeveearr)

    Hi @hcabrera

    I’m not sure which method I’m using, but it’s definitely NOT the popular posts block, as I hate Gutenberg with a passion!

    It might be the shortcode that I’m using for my homepage posts grid, but in my posts, it’s bound to be the widget.

    *edit* I’ve just had a check of my homepage, and it’s using a ‘do-widget’ function, probably from another plugin.

    Plugin Author Hector Cabrera

    (@hcabrera)

    In that case you’re definitely using the classic widget, otherwise you wouldn’t have seen that deprecation notice. That other plugin you’re using is just “converting” the classic widget into a shortcode.

    If using the WordPress Popular Posts block isn’t an option for you then there’s always the [wpp] shortcode.

    I figured it out. It was quite easy to change actually. Everything is working flawlessly!

    Thread Starter deeveearr

    (@deeveearr)

    Hj @hcabrera

    I;ve just tried using the:

    [wpp range=’last7days’ limit=5 stats_views=1 order_by=’views’]

    …on a test page within my website, and there are no images, just a run of five post titles with a number of views.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, that’s the default HTML output for the shortcode. No thumbnails, just a simple list of popular posts.

    Please re-check my (now updated) How to display a grid of popular posts in WordPress tutorial, specifically the If you’re using the shortcode section to learn how to rebuild your grid with the [wpp] shortcode (and feel free to ask questions if you have any, I’ll be here for a while before going to bed).

    Thread Starter deeveearr

    (@deeveearr)

    However @hcabrera adding this:

    [wpp range=’last7days’ post_type=’post’ limit=6 thumbnail_width=225 thumbnail_height=135 wpp_start=’

      ‘ post_html=’
    • {thumb}{title}
    • ‘]

    Shows my post grid as it is on the front page.

    And the mess above is exactly why I hate Gutenberg with a passion.

    *edit* I’m also guessing that the ‘last7days’ should be changed to ‘last1day’?

    • This reply was modified 1 year, 5 months ago by deeveearr.
    Plugin Author Hector Cabrera

    (@hcabrera)

    What do you mean exactly with “Shows my post grid as it is on the front page”? (I don’t know your website, remember? :P)

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m also guessing that the ‘last7days’ should be changed to ‘last1day’?

    Do last24hours instead.

    Thread Starter deeveearr

    (@deeveearr)

    My test page shows the grid exactly how it shows on the homepage.

    I’m guessing that’s because I’ve already added the CSS for a post grid from your tutorial – about a year ago?

    Yeah, regarding the url, its NSFW so:

    midlandsmaidens(dot)com should get you there, and the post grid is towards the bottom in the ‘trending posts’ bit.

    • This reply was modified 1 year, 5 months ago by deeveearr.
    • This reply was modified 1 year, 5 months ago by deeveearr.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, if you added these CSS rules to your site’s stylesheet for example then yeah you don’t need to add them again. Those styles are global and will apply to all popular posts grids you have on your site.

    Thread Starter deeveearr

    (@deeveearr)

    Problem is though, that I’ve got popular posts widgets on all of my blog posts, that I don’t really want changing into post grids.

    How would I go about changing the blog post widgets?

    Is there a shortcode that I can add that will show the popular posts in my blog posts?

    • This reply was modified 1 year, 5 months ago by deeveearr.
    Plugin Author Hector Cabrera

    (@hcabrera)

    You’d need to replace that with a [wpp] shortcode, only you’d be using a different HTML structure so it’s not a grid like the one from your homepage.

    For example, using the exact same shortcode you posted above minus the HTML-related parameters (wpp_start and post_html) will get you a normal popular posts list with thumbnails.

    Thread Starter deeveearr

    (@deeveearr)

    Ok so I placed this:

    [wpp range=’last24hours’ post_type=’post’ limit=6 thumbnail_width=70 thumbnail_height=70′]

    …into my test page, but it doesnt seem to be working.

    Did I miss something out?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Annoying’ is closed to new replies.