• Resolved whereverpanda

    (@whereverpanda)


    Hi Johnathan,

    Again thanks so much for this very much overlooked plugin to bring some of the basic Views functionality of Drupal into WordPress.

    I know this issue was mentioned (I think about 6 years ago) but this is something I think is really important to have, if at all possible in this plugin, and that is the ability to hide the Header or Footer output of a query, when there are no results and the ‘Empty Text’ is shown.

    I know you gave a PHP function for the person who previously asked, but I’m too scared to try this at the moment as a lot has changed in 6 years.

    Any way this can be added (or perhaps it’s already there, and I’m just being blind)?

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi whereverpanda,

    I’ve added this feature and pushed out a new release (1.5.49). When editing the header or footer for a query, there is a checkbox that says “Hide if query has no results” (or similar). Checking that box should do what you need.

    Let me know if you run into any issues, and thanks for the kind words.

    Thread Starter whereverpanda

    (@whereverpanda)

    You are genuinely amazing, Jonathan.

    Thank you so much – It seems to work perfectly.

    Have an awesome rest of the day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Header/Footer if there are no results’ is closed to new replies.