Title: Custom post type with shortcode not working
Last modified: August 30, 2016

---

# Custom post type with shortcode not working

 *  [tehpopulator](https://wordpress.org/support/users/tehpopulator/)
 * (@tehpopulator)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/custom-post-type-with-shortcode-not-working/)
 * Hi there,
 * Firstly, thanks for the great plugin.
 * I’ve been trying to use the shortcode to display a custom post-type, however 
   it does not seem to accept the post_type argument and defaults to the blog post.
 * Example
 * [rpwe limit=”2″ post_type=”books” taxonomy=”12″ thumb=”0″ readmore=”1″ excerpt
   =”true” length=”40″]
 * This works in the sidebar, just not shortcode. Am I doing something wrong? I’ve
   tried it without the taxonomy as well.
 * As a suggestion, it might be handy to have an example of non-default shortcode
   arguments in the notes or FAQ for things like the taxonomy only taking the cat
   ID and this issue.
 * Thank you, appreciate it.
 * [https://wordpress.org/plugins/recent-posts-widget-extended/](https://wordpress.org/plugins/recent-posts-widget-extended/)

The topic ‘Custom post type with shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-posts-widget-extended_3384ca.
   svg)
 * [Recent Posts Widget Extended](https://wordpress.org/plugins/recent-posts-widget-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-extended/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [tehpopulator](https://wordpress.org/support/users/tehpopulator/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/custom-post-type-with-shortcode-not-working/)
 * Status: not resolved