Forums

[resolved] query_posts with multiple parameters (2 posts)

  1. timsainb
    Member
    Posted 2 years ago #

    For some reason, query_posts will not accept multiple parameters for me. See here. Below is the code used to display the 'From the Blog' section. If it makes any difference I'm using the Carrington Framework.

    <?php
    
                                    //The Query
                                    query_posts('showposts=1&category_name=blog');
    
                                    //The Loop
                                    if (have_posts()) {
                                            while (have_posts()) {
                                                    the_post();
                                                    cfct_content();
                                            }
                                    }
    
                                    //Reset Query
                                    wp_reset_query();
    
                                ?>
  2. timsainb
    Member
    Posted 2 years ago #

    Never mind, turns out I had this same problem a few months ago, and figured out the solution.
    http://wordpress.org/support/topic/306723?replies=9

Topic Closed

This topic has been closed to new replies.

About this Topic