WordPress.org

Ready to get started?Download WordPress

Forums

front_page_cats & category_visibility (5 posts)

  1. Madcore
    Member
    Posted 9 years ago #

    I´ve tried those two plugins to avoid displaying some categories posts in the front page of my blog, but they don´t work. front_page_cats avoids the display of ALL the cats in the front page, and category visibility works, but kills the single post view and the view of some categories. Anybody knows another plugin to do that, or any way to display only a certain categories posts in the main page? Thanks.

  2. Lorelle
    Member
    Posted 9 years ago #

    Have you looked at the template tags for displaying categories in the WordPress Codex?

    http://codex.wordpress.org/Template_Tags/wp_list_cats
    http://codex.wordpress.org/Template_Tags/list_cats

    Both include "excludes" and "show children" which I use to NOT show children and to exclude the categories I don't want in my list. For example, here is one of my uses of a category tag that shows no children and excludes categories 1 and 33 from the list. It also features a link directly to the "home" page".

    <ul>
    <li><a title="Home Page" href="index.php">HOME</a></li>
    <?php list_cats(FALSE, '', 'ID',
    'asc', '', TRUE, FALSE,
    FALSE, FALSE, TRUE,
    FALSE, FALSE, '', FALSE,
    '', '', '1,33',
    TRUE); ?>
    </ul>

    You can see this at the very top of every one of my pages on my site.

    No plugin.

  3. Madcore
    Member
    Posted 9 years ago #

    Lorelle, I know that already, but that isn´t I want. I don´t talk about the category lists. It´s about the posts showed in the front page. I want to show only posts from some categories, and avoid to show posts from the others.

  4. Minna
    Member
    Posted 9 years ago #

    Never mind. I noticed you'd tried the Category visibility already, sorry. I know there's a plugin the makes a post "slide" off the front page but I didn't find it yet (and I wonder if it could be modified for categories).

    Wow, not being very helpful xD

    Have you tried Elegant Category Invisibility?

  5. Madcore
    Member
    Posted 9 years ago #

    Minna, you´re my today hero ^^. That plugin works perfecttly. Thanks you very much for your info and help ^^.

Topic Closed

This topic has been closed to new replies.

About this Topic