Title: Shortcode conditions cannot be displayed correctly
Last modified: February 6, 2024

---

# Shortcode conditions cannot be displayed correctly

 *  Resolved [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/)
 * 
   Hi there,
 * Thank you for providing such an excellent plugin. I’ve encountered some issues
   while using it, specifically when I input shortcodes in the Elementor editor 
   to display popular posts. The conditions I set display correctly in the editor’s
   preview mode, but once published, all the set conditions fail to work on the 
   frontend.
 * For instance, when I set it to display 2 posts, it actually shows 9 posts on 
   the frontend. If I increase the number, the displayed number also increases, 
   yet I can’t seem to figure out the pattern.
 * Could you please help me confirm this issue? I greatly appreciate it!
 * If you need to access the website, you can check: [https://wicca.tw/](https://wicca.tw/),
   where I currently still have the popular posts display of your plugin on the 
   homepage.
 * Below are my screenshots for your easier understanding.
 * ![](https://i0.wp.com/i.imgur.com/vZXs2MW.png?ssl=1)
 * ![](https://i0.wp.com/i.imgur.com/ifnwNlX.png?ssl=1)
 * Looking forward to your reply,
   Sliven
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-conditions-cannot-be-displayed-correctly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17401324)
 * Hello,
 * Thanks for reaching out to us…
 * We have checked our plugin in local server and it’s working perfectly…
 * Please refer to below screenshot and check…
    1. [https://prnt.sc/YuohQ8WAhIi7](https://prnt.sc/YuohQ8WAhIi7)
    2. [https://prnt.sc/fjYePuwgyxTi](https://prnt.sc/fjYePuwgyxTi)
 * Note:- Please do not copy and paste the shortcode parameter because it causes
   the quote(“) issue. Please write manually.
 * please check and let me know…
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17404380)
 * Hi Ketan,
 * Thank you for your prompt response. Following your advice, I added settings to
   display 2 and 3 posts, as shown in the figure below:
 * ![](https://i0.wp.com/i.imgur.com/Clku33w.png?ssl=1)
 * ![](https://i0.wp.com/i.imgur.com/i9AUfOW.png?ssl=1)
 * As previously mentioned, the correct number of posts displays normally in the
   backend preview, but the correct amount still does not show up during regular
   browsing.
 * Thank you!
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17404742)
 * Hello,
 * Can you please create a new fresh test page add a shortcode and check the test
   page…
 * Please check the default WordPress theme with our plugin and please let me know
   which theme you are using and whether you are using a free or pro version theme…
 * Thanks
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17454935)
 * Hi Ketan,
 * Sorry for the late response. In the meantime, I have conducted various tests,
   including adding new pages for display, adjusting various caching options in 
   Cloudflare, WordPress plugin caching, and so on, but the issue still persists.
 * I am currently using a paid theme called MasterStudy, which is the latest version.
   Even when I create a completely blank new page, the Slider still goes out of 
   my control and does not display according to the correct parameters. Here is 
   the page: [https://wicca.tw/elementor-24212/](https://wicca.tw/elementor-24212/)
 * I would appreciate your help with this matter. Thank you very much.
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17455075)
 * Hello,
 * Please send which shortcode you are using…
 * Thanks,
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17455105)
 * Hi Ketan,
 * The shortcode is [wtpsw_popular_post limit=”2″]
 * Thank you
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17456428)
 * Hello,
 * **Note:- Please do not copy and paste the shortcode parameter because it causes
   the quote(“) issue. Please write manually.**
 * Thanks,
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17459415)
 * Hi there,
 * After I manually re-entered the data, the front end still displayed anomalies.
   Additionally, I attempted to input incorrect quotation marks, which resulted 
   in a longer article count being displayed. Please refer to the attached image
   for your reference.
 * ![](https://i0.wp.com/i.imgur.com/Ib8y5L6.png?ssl=1)
 * ![](https://i0.wp.com/i.imgur.com/2OXeW4q.png?ssl=1)
 * ![](https://i0.wp.com/i.imgur.com/VpXMTRb.png?ssl=1)
 * Thank you for your attention to this matter.
 * Best regards,
   Sliven
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17460053)
 * Hello,
 * We need to check your wp-admin so please go to our website and join live chat…
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17465868)
 * Hi,
 * Thank you for your assistance. I have set up a test website and provided backend
   login credentials through Live Chat on your website. I would appreciate it if
   you could take a look. Thank you very much.
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17466270)
 * Hello,
 * Thanks for sharing details…
 * We have checked your website and you are assign 10 sticky posts then the limit
   is not working properly… sticky posts mean this post is displayed on wp-query
   first and sticky posts do not have a limit applied…
 * Can you please all sticky posts convert “draft” status and check our plugin limit
   parameter…
 * Thanks,
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17468302)
 * Hi,
 * Thank you very much for your help. I didn’t realize before that the issue was
   caused by sticky posts. Additionally, I would like to ask if it’s possible to
   display popular posts while excluding sticky posts?
 * I am very grateful.
 *  [Ketan Patel](https://wordpress.org/support/users/patelketan/)
 * (@patelketan)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17471017)
 * Hello,
 * Sorry for the inconvenience, this is not possible with our plugin…
 * Thanks
 *  Thread Starter [Sliven](https://wordpress.org/support/users/slivenred/)
 * (@slivenred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17483597)
 * Dear Ketan,
 * I would like to express my sincere gratitude for dedicating your valuable time
   to assist me in the debugging process. Your support is tremendously appreciated.
 * I wish you continued growth and prosperity in your business endeavors.
 * Thank you again for your kind assistance.
 * Sincerely,
   Sliven

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Shortcode conditions cannot be displayed correctly’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-trending-post-slider-and-widget_91aebb.
   svg)
 * [Trending/Popular Post Slider and Widget](https://wordpress.org/plugins/wp-trending-post-slider-and-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-trending-post-slider-and-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-trending-post-slider-and-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-trending-post-slider-and-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-trending-post-slider-and-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-trending-post-slider-and-widget/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [Sliven](https://wordpress.org/support/users/slivenred/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-conditions-cannot-be-displayed-correctly/#post-17483597)
 * Status: resolved