Support » Fixing WordPress » Setting Sidebar so only certain plugins show on main page

  • rockstarpoet

    (@rockstarpoet)


    I couldn’t think of a way to say that more concisely.

    I want to set certain plugins—like recent comments—to only show up on the main index page. Is there an easy way to do this?

    I tried hacking some PHP I saw but it didn’t work:

    <?php /* Show Asides only on the frontpage */ if (!is_paged() && is_home()) { if (get_option('k2asidesposition') != '0' and get_option('k2asidescategory') != '0') { ?>

    But I am not using K2. Any suggestions?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • whooami

    (@whooami)

    Member

    sefzig

    (@sefzig)

    Hi rockstarpoet,

    maybe this isnt the leanest way to get your problem solved, but I works well for my blog:

    <?php if ((!$page_id) && (!$p) && (!$cat) && (!$s)) { echo "This must be the mainpage..."; } ?>

    In other words: If the actual page isn’t a subpage, a post, a category and no searchresult, it must be the mainpage…
    Greetings,

    sefzig

    rockstarpoet

    (@rockstarpoet)

    Thanks.

    Whooami – I don’t see anything that would help me in there.

    sefzig – I am not sure if we are talking about the same thing and if we are… that didn’t work for me.

    Further clarification or other ideas are appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting Sidebar so only certain plugins show on main page’ is closed to new replies.