Support › MB Relationships › Is it possible to display "No articles available" if relationship is empty?
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"?
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.
Okay, thanks. I’ll give that a try.