Forums

Selected works archive & blog --- seperately (2 posts)

  1. muratpak
    Member
    Posted 3 years ago #

    Hi there.

    I'm setting up a wordpress to use as a portfolio site.
    I will still use it as a blog, too.

    I changed the name of the untitled categody (that displayes all the entries) to "all", but I need 2 special categories.

    Right now, here is my categories:
    ALL / BLOG / MOTION WORKS / DESIGN WORKS

    All displays everything right now.. How can exclude the "blog" category, so that it displays everything else than the blog entries ?

    What should I do ?

  2. kwbridge
    Member
    Posted 3 years ago #

    I'm not quite sure what you set up is but on the All category page you could use query posts before the loop to show all categories except for one

    <?php
    query_posts('cat=-3');
    ?>

    You would use the number of the category you want to exclude instead of the 3.

    http://codex.wordpress.org/Template_Tags/query_posts

    the loop starts with this

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.