WordPress.org

Forums

Pods - Custom Content Types and Fields
[resolved] How to add a "Nothing Found" message with echo $pod->find (3 posts)

  1. senyoraangelica
    Member
    Posted 1 year ago #

    Hello! How do I add a "Nothing Found" message with echo $pod->find? If the users searched for book using echo $pod->filters() and there were no match for the search, how do I get echo $pod_books->find to display "No books found."

    http://wordpress.org/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    <?php
    if ( $pod->total() < 1 ) {
        echo 'No books found';
    }
    ?>
  3. senyoraangelica
    Member
    Posted 1 year ago #

    Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic