Forums

[resolved] Page with static content and 1 category of posts (3 posts)

  1. ajkonsk23
    Member
    Posted 3 weeks ago #

    Here is my issue and I can't seem to find anything in the Forums that specifically answer it...please help! :)

    I have setup my site to use page navigation. On the "Services" page, I want to have some static content at the top...and below that content...any posts that are in the SERVICES category ONLY. I've created a template and got the static content to work, but how do I get the posts from ONE category to appear below?

    Thank you so much for your help!!!

  2. esmi
    Member
    Posted 3 weeks ago #

    Try adding the following just before the start of the Loop in your custom page template:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'category_name' => 'Services',
    	'paged' => $paged
    );
    query_posts($args);
    ?>
  3. ajkonsk23
    Member
    Posted 3 weeks ago #

    You sir/mam are fantastic. I think that did the trick. Thank you for the quick response and help!!

Reply

You must log in to post.

About this Topic