[Resolved] Duplicate Posts on Home Page – v2

Home Forums Support [Resolved] Duplicate Posts on Home Page – v2

Home Forums Support Duplicate Posts on Home Page – v2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1579180
    Allen

    I found and read this past support forum post and thought it was going to be exactly what I needed:
    https://generatepress.com/forums/topic/duplicate-post-on-home-page/

    But the “edited” css discussed in the forum must have been passed in the private admin, because the initial css posted there doesn’t work.

    I also tried the css using this edit, since it’s offset by a category not a tag:
    .home .category-featured:not(.wp-show-posts-single {display: none;}

    My specific case (which seems the same to the past forum post):
    Using WPSP, I have a featured category at the top of a custom home page and several other post categories below that. The “Featured” post has the Featured category selected, plus its actual editorial category also selected.

    I would like to hide the post in the lower section whenever that post is the current featured post.

    Thank you!

    #1579673
    David
    Staff
    Customer Support

    Hi there,

    i think that method was for a WPSP post list above the themes archive template.

    Tom provides a PHP Snippet here that looks like it may fit your needs:

    https://wpshowposts.com/support/topic/stop-showing-duplicate-posts-on-the-same-page-post-using-a-different-shortcode/#post-15716

    #1579785
    Allen

    Yep, that nailed it! Thanks David!

    #1579879
    David
    Staff
    Customer Support

    Awesome – glad to hear that!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.