Any php professionals please help me friends !

Discussion in 'PHP' started by strgraphics, Aug 12, 2009.

  1. #1
    I am running one wordpress bolog..., in that i am using the page numbers plugin

    so in home.php i keep as

    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>

    page numbers are appearing,

    but when i clicked on the 2nd page, it again appears 1st page only - not going to 2nd page what i have to doo

    please friends i am suffering a lot with that,
     
    strgraphics, Aug 12, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    kblessinggr, Aug 12, 2009 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Frnd thanks for responding...., my theme having mainly home.php, archives.php, index.php, search.php, page.php......,

    all are starting with: <?php if (have_posts()) : while (have_posts()) : the_post(); ?>


    so working but in the home.php i using as

    <?php $recent = new WP_Query("cat=15&showposts=8"); while($recent->have_posts()) : $recent->the_post();?>

    what i done is in my home page the 15 the catagiory willl displays 8 posts .

    But in search.php and other files working with the page numbers plugin but the home.php not working because of the above reason plz crack it sir.........
     
    strgraphics, Aug 12, 2009 IP