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

  1. Hurme
    Posted 3 years ago #


    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. :)


  2. Max Chirkov
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Text Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic