• Resolved stiangk

    (@stiangk)


    Hi,

    Thank you so much for an awesome plugin!

    I would like to show other widgets on the post page only if there are notes in the post. Is there any way make a simple function to check if there are any notes?

    I’m using the “widget logic” plugin (this makes it possible to show a widget only if one or more conditions are true) and I wonder if it is possible to make these two plugins work together.

    Any reply is appreciated.

    Thanks!

    https://www.ads-software.com/plugins/side-matter/

Viewing 1 replies (of 1 total)
  • Plugin Author setzer

    (@setzer)

    stiangk,

    Interesting question. I believe the following code will do what you’re asking. Copy it into the logic field for the widget you want to add:

    global $side_matter; return ! empty( $side_matter->notes );

    Hope this helps you!

Viewing 1 replies (of 1 total)
  • The topic ‘Check if there are any notes’ is closed to new replies.