Forums

[Plugin: Samsarin PHP Widget] conditional showing of widget (1 post)

  1. Ad Lagendijk
    Member
    Posted 3 years ago #

    As explained by Joost de Valk widgets should not always be shown. For instance a choice is to show them only when the user is viewing the home page.

    To this end I have added an option to this widget that allows to conditionally (using php) show the widget. For instance is_home() can be used as the showing condition. The showing condition could also involve categories or tags. If there is enough interest I might put it up here.

    I have added the same option to the built-in text widget.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Ad Lagendijk
  • This topic is not a support question
  • WordPress version: 2.7