Support » Fixing WordPress » How to remove posts from home page?

  • Is it possible to remove posts from homepage only? Or say block posts in few categories or tags from appearing on home page. Is that possible without using any plugin? If not then which is the best plugin?

Viewing 5 replies - 1 through 5 (of 5 total)
  • using WP_Query(), specifying the argument cat you can specify what category id’s you want to include in your query and/or (using its negative equivalent value) the id’s to exlude from the query.

    using get_posts(), the idea is the same but the argument key is category.

    Any reference URL(s)?

    What do you mean?

    I want to hide few posts say from a particular category from the homepage… that is I dont want them to show in latest posts….

    Yes… you will need to specify arguments in your WordPress query. All depending on the theme and setup you have, this would be found in front-page.php or home.php, or in a custom template file that points to the page set as your front page in your WordPress setup.

    See the above links on how to modify the arguments to your query.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove posts from home page?’ is closed to new replies.