posts from a specific category on index.php

Discussion in 'WordPress' started by Tuhin1234, Dec 6, 2015.

  1. #1
    Working good by this
    <?php query_posts($query_string . '&cat=8'); ?>
    Code (markup):
    But show same post all page /page/2-3-4-5-6/ all page show same post ...Please help me
     
    Tuhin1234, Dec 6, 2015 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    PoPSiCLe, Dec 6, 2015 IP
  3. Tuhin1234

    Tuhin1234 Active Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    Not work
    Not work
     
    Tuhin1234, Dec 6, 2015 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Since you don't show us any of your code, how are we supposed to help? Using a category as the only post criteria for a site is trivial, so if it's not working, you're doing something wrong. It's as simple as that. Start over - by that I mean, start with an existing template file, modify the query for the post-fetch, and see if that works - then, after you've done that, you can start modifying other stuff you need.
     
    PoPSiCLe, Dec 7, 2015 IP