Hide sticky posts on all pages (not only on front page)

Viewing 10 posts - 1 through 10 (of 10 total)
  • #7685
    staud
    Participant

    Hi,

    I made the sticky posts ONLY to be shown in the header slider, no where else. On the front page the sticky posts are hidden but they appear on every other page, for example in the categories widget, in the posts archive etc. etc.
    I also have an extra static page named “news” with the blog-template.php which also shows EVERY posts, including the sticky posts, which it shouldn’t.

    I’ve tested several “hide”-plugins and stuff for hours and I’m really despair about this problem. Can you help me, please?

    • This topic was modified 12 years, 2 months ago by staud.
    #7693
    Michelle
    Participant

    This is pretty much my situation too. I want my home page to be a Landing Page with slider, my “news” page to use the regular blog structure without slider posts showing at all, and the portfolio option available for other pages (also not showing the slider pictures). Somebody help us!

    #7696
    Alexander
    Participant

    @staud: Have a look at my tutorial at my website to setup slider images and links:

    http://www.mouseclick.com/?page_id=1852


    @Michelle
    : No page can hold any images for a slider. So were do you want the sticky posts for the slider to sit if not in your blog page or your portfolio? Fantasy is what people want, but reality is what they need πŸ™‚

    Cheers,
    Alexander @ http://www.mouseclick.com

    #7701
    Michelle
    Participant

    I do have the slider working in my landing page, but the problem is that they’re showing on the blog/news page. Can’t they just be invisible? I mean, I obviously wouldn’t care if they’re technically posts, I just want the loop to skip them or hide/not display them. I can’t imagine what would be the point of making them be functional posts since they’re just pictures. And I don’t want my home page to be a portfolio. I want it to have static text under the slider. Surely that’s not absolutely impossible, even if the theme itself has to be modified somehow?

    ETA: Other alternative solution possibilities: 1. Can I sink sticky posts to the bottom instead of displaying them on top of the blog? I mean if they’re visible somewhere in the depth of my archive that would be alright. 2. If I must sacrifice the portfolio page to display the sticky posts, can I make that a sub page and leave my landing page as is? Will the posts then not show on the blog anymore?

    #7704
    Alexander
    Participant

    Did you read my tutorial about the slider? It also target those who only want to hide their post from their blog pages – with or without portfolio.

    http://www.mouseclick.com/?page_id=1852

    Cheers,
    Alexander @ http://www.mouseclick.com

    #7705
    Michelle
    Participant

    Yes, I read the tutorial, but I can’t figure out how to do what I want.

    #7709
    staud
    Participant

    @Alexander:
    I’ve read your tutorial before, thanks for it! Unfortunately it didn’t solve my problem – maybe I did something wrong!

    To Michelle and others:
    I found a workaround for that problem meanwhile. I edited the wp query code in the blog-template.php. Between [ ( ‘posts_per_page’ ), ] and [ ‘paged’ => max( 1, get_query_var( ‘paged’ ) ) ] I pasted this: [ ‘cat’ => 5, ]
    (A code posting function in this forum would be great!)
    That means only posts of the category ID 5 will be shown. This is my “news” category. I got this help at the wordpress.org forum. I guess you can also change the code in ordner NOT to show the category ID with the slider-images. If you know php this would be quite easy, I guess. But me – I don’t πŸ˜€

    #7731
    Michelle
    Participant

    Thanks, staud! That totally worked. πŸ˜€

    #7796
    gindavall
    Participant

    You can change the date of the sticky image posts to make them hide deep in your archives.

    Also, instead of creating a blog page to show only one category, why not create a category page on the menu? It will be the default blog style in function, the only thing is that there’s a bar at the top saying “now browsing category Whatever”. But that’s easy to remove in CSS.

    #16471
    zweet16
    Participant

    Did anyone find a good solution for this? I have the same problem. They are hidden on the front page but they show up in “recent posts” and “categories” and everywhere else.

    I followed the mouseclick tutorial.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.