How to avoid same post displaying twice on same page?

  • Unknown's avatar

    @supernovia I also created this one regarding link colors. I don’t know if the Tenaz theme colors can’t be overridden by a style selection? https://wordpress.com/forums/topic/links-are-red-even-though-i-changed-them-to-blue-using-styles/

  • Thank you! We’ll work on all of these.

  • PS. I don’t think hyperlinks are allowed in the media library edit caption area.

    Can you clarify this?

  • Ideally, there would be recent posts showing up in that sidebar as it was designed. Then there’s no work or worrying once you post something. I think the template was designed well that way. However, there isn’t any logic/categorization/tag that I could add to the recent post query loop that would exclude the current post. 

    We have two issues:

    • query loop showing the current post on a single post template
    • duplicate posts when there are multiple query loops

    I’ve done some digging and for now there’s no great way to avoid side-bar duplication on the single post template, specifically because there’s no built in filter to remove the current page. I did find a feature request for that, though, and added your “vote” to it.

    But we can with some confidence avoid front-page duplication now; I’ve shared two methods that would work: using only sticky posts for those top five stories, or using tags and categories to organize how posts appear on the front page. Which of those would work best for you?

  • Unknown's avatar

    Thank you for adding my vote to the feature request on the duplication issue. I have already begun to manually solve for duplication on the front page. Thanks for your help!

  • Unknown's avatar


    supernovia
     · Staff · <time datetime=”2023-09-27T19:40:10+00:00″>Sep 27, 2023 12:40 pm</time>

    PS. I don’t think hyperlinks are allowed in the media library edit caption area.

    Can you clarify this?

    You had noticed that the feature image caption plugin was rendering html on some captions. Users are not able to add links to captions using the media library. It appears to be a “link free” area. But since the free Pexel images somehow have captions with links already in them, they are displaying with html code when that plugin is activated. I’m able to delete the html using the media library “edit caption” feature.

  • The topic ‘How to avoid same post displaying twice on same page?’ is closed to new replies.