Title: Shortcode [crp]
Last modified: October 14, 2023

---

# Shortcode [crp]

 *  Resolved [led69](https://wordpress.org/support/users/led69/)
 * (@led69)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/)
 * Good morning,
 * Thanks for the great plugin!
 * What Shortcode [crp] can I put to display 20 related articles on a page?
 * THANKS
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-crp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17145045)
 * Please see this post in the Knowledge Base:
 * [https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/](https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/)
 * You need to set the `limit` attribute to 20.
 *  Thread Starter [led69](https://wordpress.org/support/users/led69/)
 * (@led69)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17148920)
 * Yes, thanks, but I don’t know how to write the syntax, because I can’t find an
   example.
 * For example, should you write the shortcode like this? [crp limit 20]  ?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17149134)
 *     ```wp-block-code
       [crp limit="20"] 
       ```
   
 * This is how you’d do all shortcodes in WP. Passing attributes as above.
 * Please see this article from the Codex. [https://codex.wordpress.org/Shortcode](https://codex.wordpress.org/Shortcode)
 *  Thread Starter [led69](https://wordpress.org/support/users/led69/)
 * (@led69)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17150036)
 * Thanks, it works!
   I tried 40, but it only shows 24, is it limited to 24?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17150153)
 * No. It is likely because it can only find 24 posts that are related.
 * I would recommend keeping it to max of 10-12 as the initial queries can be heavy.
   Do enable the caching in the plugin settings page.
 *  Thread Starter [led69](https://wordpress.org/support/users/led69/)
 * (@led69)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17150184)
 * No, that’s probably not the reason, we have more than 400 articles and images.
   And these images are visible, so there is no shortage of articles and images.
   
   No problem for resources, Google test 90% mobile and 100% PC
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17158053)
 * It’s not the number of articles you have, but likely the number of posts that
   the plugin thinks is related. You can double-check if you want to dig into the
   queries.
 * [https://webberzone.com/support/knowledgebase/debugging-with-query-monitor/](https://webberzone.com/support/knowledgebase/debugging-with-query-monitor/)

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

The topic ‘Shortcode [crp]’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/shortcode-crp/#post-17158053)
 * Status: resolved