Conditional statement used with shortcode
-
I am using a plugin shortcode to view recent posts on a page. The shortcode specifies the category and limits to showing 5 posts.
Is there a way to add php code after the shortcode to show a “message” if there are no posts, and to show a different message (i.e. “see all posts” linking to archive page) if there are more than 5 posts available in that category.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Conditional statement used with shortcode’ is closed to new replies.