WordPress.org

Ready to get started?Download WordPress

Ideas

Conditional widgets

  1. Joan Junyent Tarrida
    Member

    12345

    Allow widgets so be conditionally driven. E.g. Shown only is_page or is_404, etc.

    Posted: 7 years ago #
  2. joshblake
    Member

    That feature is already available to widgets .... they just need to know how to take advantage of it. Function calls to the WP API such as is_home(), is_single etc. A simple condition resulting in premature but graceful termination of the widget function will prevent that widget from appearing on the sidebar.

    Posted: 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    2 Votes
  • Status

    This is plugin territory