• This is probably a common question but I’ve yet to find a clear explanation to it.

    I’d like to create posts with a specific “category” say, “TUTORIALS”.
    Then I’d like to create a post and select the “TUTORIALS” category.

    Now I’d like the page for “TUTORIALS” to only display posts withe the “tutorials” category. I also don’t want those posts visable anywhere else.

    Make sense?? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use query post tag

    Read it here:
    https://codex.www.ads-software.com/Template_Tags/query_posts

    Thread Starter onekea

    (@onekea)

    This definitely helps. I see that I need to use this to sort out the loop:

    query_posts(‘cat=2,6,17,38’);

    But how do I create a seperate file for say a “TUTORIALS” page? Do I just copy the index.php file and modify the loop, then save it as tutorial.php, then pull that with

    <?php include(TEMPLATEPATH . ‘/tutorial.php’); ?>

    Sorry if I’m asking noob questions, I’m still trying to sort out all this out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Categories to build pages’ is closed to new replies.