[resolved] exclude some posts from main page (3 posts)

  1. Arti_rus
    Posted 4 years ago #


    By default, all my posts are seen from main page and are sorted there in hronological order.

    I want some of my posts (consisted some detailed technical info) to be not inluded into main page (i.e. not visible in "new posts"), but still visible form direct urls and serching (including tags and categories).

    The first idea was to make them pages, but pages doesn't have tags and categories and this is great disadvantage for me.
    The second idea was to set some date in the past (for example, 1900 year), so all such posts will be at the end of main page and in fact not visible as "new" posts. But this hronological order remains also for search (including tags and categories) - this is also disadvantage for me.

    So I want to modify some of my posts to make them not visible from main page, but retain all other functionality of posts ontouched.

    Please, help me, how I can solve this problem?

  2. Salvana
    Posted 4 years ago #

  3. Arti_rus
    Posted 4 years ago #

    Salvana, thank you very much! :)
    This (wp-hide-post plugin) is actually what I want.

    Before this I implemented different solution, simply:
    1. Made new category "not in front page"
    2. Modified index.php by adding this part of code before posts loop:

    if ( is_home() ) {
    	query_posts( 'cat=-17' ); /* cat=17 is "not in front page" category*/

    3. All posts with "not in front page" category are not seen in front (main) page.

Topic Closed

This topic has been closed to new replies.

About this Topic