Home Forums Weaver Show Posts & Show Sliders Hide Content Slider Without Posts

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59575
    AlanW
    Participant

    Hi,

    When there are no posts of a given category, the Weaver Show Slider plugin simply displays “No posts found.”

    Is there a way to do either of these things if there are no posts?

    1) Prevent the slider from showing up at all.

    2) Display a custom message.

    Your help is appreciated.

    (Great plugin by the way!)

    #59576
    Weaver
    Keymaster

    Not at this time.

    Unfortunately, due to all the server issues we’re having, I really don’t have time to fix that at the moment.

    However, whenever I do release an updated version of Weaver Show Posts, which should happen in a month or so to update for WP 5.2, the ‘No Posts found” message will be filtered through a filter called ‘wvr_show_posts_no_posts’. There are plugins that allow you to add filters (PHP code), and you could use this mechanism to change the message to whatever you like – including an empty string.

    #59577
    AlanW
    Participant

    Very well. Thank you!

    #62198
    dsg257
    Participant

    Have you added this feature yet as i would like to use it  also

    #62202
    Weaver
    Keymaster

    Show Posts Version 1.5 has the filter as described. It should be available.

    You will need to create a child theme or use a plugin that allows you to create PHP filters. The filter passes in the default wording “No Posts Found”. The replacement filter can create any text it wishes.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.