Forums

how to use query post (7 posts)

  1. bhang
    Member
    Posted 2 years ago #

    i used this code to query post in certain category.php

    <?php query_posts('offset=1'); if (have_posts()) : while (have_posts()) : the_post(); ?>

    because i want to display all post in that category minus the last post, but the problem is when i go to page 2 the content not changing (still the same with page 1)

    does anyone can solve this..thanks in advance

  2. bhang
    Member
    Posted 2 years ago #

    anyone?

  3. Shane G
    Member
    Posted 2 years ago #

  4. Douglas
    Administrator
    Posted 2 years ago #

    Alternatively, if you aren't quite comfortable messing with the PHP, try out this plugin, which makes the process a bit easier.

  5. bhang
    Member
    Posted 2 years ago #

    @douglashanna

    im using wordpres 2.7.1 and it's not compatible i got an error after i intall it..thanks anyway for you response.. :)

  6. bhang
    Member
    Posted 2 years ago #

    @Shane G

    i looked to your reference articles for the right query posts but still not found what i want..
    and many thanks for your support

  7. bhang
    Member
    Posted 2 years ago #

    anyone..?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.