Duplicate display when not enough post to display
-
Hello,
I use this shortcode with these parameters :
[psac_post_carousel limit=”10″ design=”design-2″ category=”9,1″ show_author=”false” show_category=”false” show_date=”false” show_content=”true” content_words_limit=”10″ media_size=”large” show_read_more=”true” show_tags=”true” show_comments=”false” order=”DESC” orderby=”post_date” dots=”true” arrows=”true” slide_show=”2″]It works but in my test i have only one post in these categories. So the display duplicates the post to be displayed as the slide_show=”2″.
May be better to add an if clause when the number of post to displayed is less than the number to be displayed.
Regards,
Nirina.
- The topic ‘Duplicate display when not enough post to display’ is closed to new replies.