WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] Hiding YARPP widget without content (4 posts)

  1. Jamil Jonna
    Member
    Posted 3 years ago #

    Hello,

    Can I hide YARPP easily if it has no content?

    Thanks

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    There isn't a straightforward way, though you could make the "No related posts" message blank in YARPP options. You can also create a custom YARPP template to display absolutely nothing in this case. More info here:

    http://mitcho.com/blog/projects/yarpp-3-templates/

  3. Jamil Jonna
    Member
    Posted 3 years ago #

    Yes, I already have my own custom template and after the "else" statement there is indeed nothing. But the widget itself—i.e. the space it takes up and the styling that is applied—is still there.

    I noticed that in the default tag and category widgets have a 'hide_empty' option. I was hoping that widget logic would allow me to use it but I haven't found out how.

    Thanks anyway.

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    I see. Unfortunately with the widget there's no way to hide everything in that way. Perhaps you can adjust this with some CSS.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic