• <?php query_posts('category_name="'.$category.'" & get_panel_name()="courses" ');
      if(have_posts()) : while(have_posts()) : the_post();
    ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    I need something that will return posts only from the courses panel.

Viewing 1 replies (of 1 total)
  • Assuming that $category contains the category slug, yes. But are you amending the main query or is this a secondary query? Either way, you are likely to run into problems if you do not amend the code above.

Viewing 1 replies (of 1 total)
  • The topic ‘I need something that will return posts only from a specific panel’ is closed to new replies.