Support » Plugin: Display Posts Shortcode » When no posts are available, have a custom message

  • Resolved yobi

    (@yobi)


    When there are no posts available using a display post category, is there a way to customize the message?

    I have a category for jobs, and when they are no longer available the posts are turned into drafts.

    So there will be a time where there will be no listings underneath “Job Openings”
    In this case I would like a custom message to read “There are no current job openings.” when there are no posts displayed.

    Is it possible to do this? Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Yes, you can use the no_posts_message parameter.

    Example: [display-posts category=”jobs” no_posts_message=”There are no current job openings.”]

Viewing 1 replies (of 1 total)
  • The topic ‘When no posts are available, have a custom message’ is closed to new replies.