• Resolved Go7enKs

    (@go7enks)


    Ok, I’ll try to explain you what I’d like to do with my blog.

    In my blog I post an “Album of the week” on the sidebars and I keep a page with the archive of these albums. Up until now I did it all in html and without letting people comment in the archive page. I’d like people to be able to comment EVERY album from the Archive page. Practically I’d like the Archive page to be just like ANOTHER home with posts, with every post being a new album every week (thus enabling people to comment). Also I don’t want this “albums posts” to appear on my home, just on the archive page.

    Is there a way to do that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You could simply create a category called Album of the Week and file those particular posts in it. When a visitor clicks that category name those posts will come up. They can then select individual posts to read and/or comment on.

    With respect to excluding those posts from the front page you can do it with the query_posts function. Look in index.php for…

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    …and modify it as such…

    <?php query_posts('cat=-ID'); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    …where ID is the numerical ID of the category you want to exclude.

    More reading on query_posts.

    Thread Starter Go7enKs

    (@go7enks)

    Interesting. I tried it and it’s pretty easy.

    Can I also hide the category from the “Categories list” in my sidebar? Because I don’t need it to show up there, I’ll put a direct link under the Album of the Week picture. Is that possible?

    Thread Starter Go7enKs

    (@go7enks)

    Also how can I retrieve the post from a specified category in a page? Cause right now if I click on the “hidden category” it doesn’t display any posts. It redirects me to the homepage without my hidden post.

    Thanks for helping me 😉

    Have a look at wp_list_categories

    Edit: after re-reading the two questions perhaps I should be more clear.

    Can I also hide the category from the “Categories list” in my sidebar?

    Yes. Peruse the link I gave you above.

    I’ll put a direct link under the Album of the Week picture. Is that possible?

    No need to insert a direct link. <?php the_category(', '); ?> will display a link to the category of the post. In your theme it could be used like Posted in <?php the_category(', '); ?> or something similar. More info on that here.

    if I click on the “hidden category” it doesn’t display any posts. It redirects me to the homepage without my hidden post.

    What theme are you using?

    Thread Starter Go7enKs

    (@go7enks)

    I’m using “Bluebeam” designed by Website Templates.

    I’m sorry if I’m such a newbie, I appreciate your help.

    By the way, where do I insert this?: <?php wp_list_categories(‘arguments’); ?>

    Thread Starter Go7enKs

    (@go7enks)

    I sorted out how to exclude the category downloading a plugin. SO that problem is solved.

    The only problem left is that when I click on the hidden category it redirects me to the homepage instead of displaying all the post from that categeory.

    EDIT: Actually, now when I click on ANY category it redirects me to the homepage…What did I do wrong?

    Thanks again!

    Thread Starter Go7enKs

    (@go7enks)

    Nevermind. With the plugin I downloaded I solved everything. Thanks LenK for your help. Thank you very much 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Making “hidden” posts to put in specific pages’ is closed to new replies.