Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Why doesn't post_per_page work with query_post?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #197724
    amidigital
    Participant

    The WordPress Settings/Reading is controlling the post amount.

    “`
    <?php query_posts( 'post_type=profile', 'posts_per_page=20'); ?>

    <pre><code> <?php while ( have_posts() ): the_post(); ?>

    <div class="profilesPage" <?php post_class('group'); ?>>

    <a href="<?php echo get_permalink( $post->ID ); ?>">
    <?php $photo = get_post_meta($post->ID, 'wp_custom_attachment', true);?>
    <div class="driverPhoto" style='top: -13px;background-image: url(<?php echo $photo['url']; ?>)'></div>
    </a>

    <div id="advancedCircle" class="circle">
    </code></pre>

    <p class="trophyCount">
    <?php echo types_render_field("trophies", array("argument1"=>"value1","argument2"=>"value2","argument2"=>"value2")); ?>
    </p>

    <pre><code> </div>

    </div><!–/.profilesPage–>

    <?php endwhile; ?>
    <?php wp_reset_query(); ?>“`

    Thanks,
    Aaron

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.