Is it possible to display "No articles available" if relationship is empty?

Support MB Relationships Is it possible to display "No articles available" if relationship is empty?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40382
    Craig PatersonCraig Paterson
    Participant

    Hi there,

    I am using the following shortcode to display articles written by an adviser, which all works perfectly if there are articles associated with that adviser.

    [mb_relationships id="advisers-to-adviser-articles" direction="from" mode="ul"]

    But if there are no associated articles, is it possible to display something like "No articles available"?

    #40383
    PeterPeter
    Moderator

    Hello,

    The shortcode [mb_relationships] does not support a fallback message. You can try to create your own shortcode and display it if there is no relation posts.

    #40384
    Craig PatersonCraig Paterson
    Participant

    Okay, thanks. I’ll give that a try.

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