Post per page code help needed

  • Unknown's avatar

    Hello!

    Im trying to get 13 posts on my “index” page and 18 on my “older entries” (/page/2/) page. I think this is the code that controles this. What do i need to or change to achieve that?


    <?php if (is_paged()) $is_paged = true; ?>
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=post&paged=$paged"); ?>
    <?php if (have_posts()) : $count = 0; $boxcount = 0;?>
    <?php while (have_posts()) : the_post(); $count++; ?>

    <?php if ($count == 1 && get_option('woo_home_featured') == "true" && !$is_paged) : ?>

    Im super tankfull for any help!
    My php skills are not that good, but let me know if i need to provide any other code.

    Page URL: http://www.goertz.se/pov/
    Have tried: The “Post Per Page” plug in without success. Might be colliding with my theme.
    Theme: WooTube
    WP version: 3.2.1

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • Unknown's avatar

    You are changing the PHP code, which means:

    The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.

    https://en.forums.wordpress.com/topic/7-things-to-know-before-posting-in-wordpresscom-forums?replies=1

    This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/

    For more on the difference: http://support.wordpress.com/com-vs-org/

  • The topic ‘Post per page code help needed’ is closed to new replies.