• Hey,

    Is it possible to let certain posts appear in archives only, but not on the sites main page? i’m really looking for that feature, because i’m giving members the chance to talk about stuff, but i don’t want it to interfere my updates on my site…

    Thanks in advance
    Heat

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can opt posts in your front page:

    https://www.semiologic.com/projects/opt-in-front/

    You can also opt posts out, using Matt’s asides

    Thread Starter Heat

    (@heat)

    I guess i was misunderstood here, i want a plugin that will actually letting me post in archives, without letting the posts show in my main index

    Thanks
    Heat

    Thread Starter Heat

    (@heat)

    Anyone, i need this real fast :S

    Heat

    Do you have a special category assigned to these post you want to hide from the main index? If you do, you can have something like
    <?php if ( !in_category('x') ){ ?>
    the whole post and it's tags here
    <?php } ?>

    around all the stuff that makes up your post (title, content, meta data, comment link) — as the first thing inside the Loop. In your Main template (index.php) that is.

    Oh yeah, the problem with my solution is that the posts will just be hidden and if you’ve set your front page to show 10 most recent posts and there’s 10 hidden posts, it’ll show 0 posts. I’m sure there is a solution to that (like a counter or something), but I just don’t want to dive into that right now ??

    Hey Minna, I’m already able to display only one category on another page–which is what your tag does. I’m interested in hiding everything about a certain category on the main page including from the recent entries/archives list/tag.

    If you go to https://thepete.com/free.php I’ve got all the entries from category 117 displaying there. (There’s only one right now.)

    But on my index.php, the full entries don’t show up, but the title does in the “recent entries” section in the side bar. Any ideas how to beat this? I’m using <?php if (in_category(117) && !$single) { ?> to exclude the category from the main page (index.php).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show posts only in archive’ is closed to new replies.