WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] hide category on home page doesnt work (3 posts)

  1. Mark Steggles
    Member
    Posted 5 years ago #

    This doesnt seem to work

    <?php
    if (is_home()) {
    query_posts("cat=-62");
    }
    ?>

  2. Mark Steggles
    Member
    Posted 5 years ago #

    my code is:

    <?php
    if (is_home()) {
    query_posts("cat=-62");
    }
    ?>
    <?php if (have_posts()) : ?>

    <?php query_posts($query_string.'orderby=title&order=ASC'); while (have_posts()) : the_post(); ?>

  3. Mark Steggles
    Member
    Posted 5 years ago #

    I found a plugin called 'category visibilty' which seemed to do the trick

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.