• Hello,

    after successfully upgrading to 2.1 I have a little problem.

    This snippet does not work anymore:

    if (is_home()) {
    $wp_query->set(‘cat’,’-2′);
    query_posts(”);
    }

    Before the upgrade it hides category 2 from the frontpage.

    Please help,

    Ollie

Viewing 3 replies - 1 through 3 (of 3 total)
  • 2.1 has the frontpage capability built right in to it.. Options => Reading

    spencerp

    Thread Starter ollie_kl

    (@ollie_kl)

    Hello,

    thank you but this is not what I mean. I want to display the posts of all categories but category 2 should be excluded.

    Ollie

    I think my problem is related.

    I use

    <?php $wp_query->set( ‘cat’, ‘1’ ); ?>
    <?php query_posts( ” ); ?>

    to select cat=1 only on the frontpage, but it stopped working after upgrading to 2.1

    btw i solved it temporarily with the category visiblity plugin by https://ryowebsite.com/ but i would like to fix it with code instead of a plugin.

    was used before the loop, but tried inside as well but both don’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Frontpage after 2.1 Upgrade’ is closed to new replies.