WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Text Widget
[resolved] Include category but exclude frontpage? (3 posts)

  1. Hurme
    Member
    Posted 1 year ago #

    Hello,

    Thanks for the wonderful plugin.

    I'm trying to make the plugin show up in specific category and posts in that category, no where else. Because these posts also appear on the frontpage of the wordpress site, I need some way to exclude the plugin from appearing there.

    I'm sure it's something relatively simple like a new condition in the plugin settings, but as I'm no programmer this problem has me baffled. :)

    http://wordpress.org/extend/plugins/advanced-text-widget/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    option "Post in Category" should fit your needs. Have you tried it? If you still have widget on the front page, then create a new condition and try these:

    If you have static front page:
    in_category($arg) && !is_front_page()

    If your home page is blog's main page:
    in_category($arg) && !is_home()

  3. Hurme
    Member
    Posted 1 year ago #

    The last option did the trick, thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic