Exclude some posts from main page - Wordpress

5 replies
  • WEB DESIGN
  • |
Hello!

Is there a way to put on the domain page (www.mydomain.com) just the posts you want, not all of them?

The posts I've created are put on a category, but they all appear on my domain page. I want a way to exclude some of this posts from main page (www.mydomain.com).
#exclude #home #page #posts #wordpress
  • Profile picture of the author Patrick
    You can create a category called "homepage" and hide it from the categories list..

    And then you can modify your index.php file to display posts from that particular category only using query posts..

    Function Reference/query posts « WordPress Codex
    {{ DiscussionBoard.errors[4629449].message }}
    • Profile picture of the author alinpion
      Originally Posted by schwarzes View Post

      You can create a category called "homepage" and hide it from the categories list..

      And then you can modify your index.php file to display posts from that particular category only using query posts..

      Function Reference/query posts « WordPress Codex
      You are saying that wordpress doesn't have an option that will exclude unwanted posts from main page and I have to modify the code?

      I'm not going to modify the code because the last time I did that I had to reinstall wordpress (all my work was gone).
      {{ DiscussionBoard.errors[4629732].message }}
      • Profile picture of the author Patrick
        Originally Posted by alinpion View Post

        You are saying that wordpress doesn't have an option that will exclude unwanted posts from main page and I have to modify the code?

        I'm not going to modify the code because the last time I did that I had to reinstall wordpress (all my work was gone).

        Well ..some themes do allow you to do that, but very few..

        If you cannot do it, then PM me I will do it for you at a cheap cost.
        {{ DiscussionBoard.errors[4629743].message }}
        • Profile picture of the author alinpion
          I found the solution for my problem:

          1.Create a page that you later want to make it your main page;
          2.Dashboard>Settings>Reading>Select Static page and on front page box chose the page created later;
          or
          3.Choose how many posts to display on front page.
          {{ DiscussionBoard.errors[4629842].message }}
          • Profile picture of the author Patrick
            Originally Posted by alinpion View Post

            I found the solution for my problem:

            1.Create a page that you later want to make it your main page;
            2.Dashboard>Settings>Reading>Select Static page and on front page box chose the page created later;
            or
            3.Choose how many posts to display on front page.

            That will do nothing...
            {{ DiscussionBoard.errors[4629983].message }}

Trending Topics