• Resolved alexbrj

    (@alexbrj)


    Hi,

    I’m using the “Latest posts widget” on the Valenti theme (Themeforest). So, my sidebar is showing not only all the latest posts on my site, but it’s including the post from the post page itself, actually, any page where you go! I think it’s not a best practice: the page where someone click should be outside of the loop on php for the page, in order to not be shown on the sidebar (latest posts). It doesn’t make sense…

    As an example, if I go the this page: https://www.okpeople.com.br/wearables/ralph-lauren-polo-tech/, then in the latest posts widget on the right, in the sidebar, there is a block showing this same post info. I’d like to exclude from this widget the post you are reading!

    How can I achieve that, please? Is there a way in the WP, with a snippet of code or any option on theme admin?

    Thanks.

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

    (@jberghem)

    The latest posts show the last posts which have been published not the latest posts you have viewed. This is therefore independent from the page you’re currently on.

    The latest posts span at this moment from November 13th to 18th. So naturally the post that you provided the link to is going to be in the list of latest posts since it was published on the 14th.

    Once you publish more posts it will remove itself from the list and will be replaced by the newer posts that were published.

    Thread Starter alexbrj

    (@alexbrj)

    Right, but what if someone reads the exactly latest post and thus it will displayed on this list as well?

    My doubt is how to remove it from this widget.

    jberghem

    (@jberghem)

    Yes but when they see the link to the post they are on in the latest post list they know they are reading a current post and not an old one.

    Before you decide that you don’t want it in the list, ask yourself what do your visitors want? It is for them you make this site no? Removing the current page from the list of latest post will be confusing to them because they are used to seeing there on all the other websites they visit.

    A visitor wants the latest news right?
    So when he sees the post he is reading at the top of the latest posts list he’ll be super happy to know he’s currently reading the latest news! ??

    The point I’m trying to make is that you are trying to solve a problem that doesn’t exist for the visitors of your site.

    Is it posible to remove it? yes probably. Is it easy to do? Definitely not! Will your site run better? uh… no it probably make the pages load slower. Will it increase the conversion rate on your site? No, it will hurt it if it will have any effect at all. Is it worth your time and effort? I honestly don’t think so.

    Thread Starter alexbrj

    (@alexbrj)

    You’re absolutely right. I wasn’t look at this question from your point of view…

    Thanks so much for making me think about it.

    jberghem

    (@jberghem)

    I’m glad I was able to help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Latest posts: how to exclude the post you are reading?’ is closed to new replies.