• Resolved timsainb

    (@timsainb)


    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();
    
                                ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘query_posts with multiple parameters’ is closed to new replies.