Title: Shortcode Issue
Last modified: September 1, 2016

---

# Shortcode Issue

 *  [jbailey4545](https://wordpress.org/support/users/jbailey4545/)
 * (@jbailey4545)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/shortcode-issue-18/)
 * Having an Issue with all documents showing using the short code. I added the 
   following to the function.php to use categories.
 * add_action(‘init’, ‘docs_add_default_boxes’);
    function docs_add_default_boxes(){
   register_taxonomy_for_object_type(‘category’, ‘document’); register_taxonomy_for_object_type(‘
   post_tag’, ‘document’); }
 * This works great and below is the short code I am using.
 * [documents numberposts=’-1′ orderby=’title’ category_name=”namehere”]
 * I have 4 documents and only 2 show up. I have double checked the categories for
   each doc, each doc is final, each published, and not private.
 * I have also tried the below with the same result.
 * [documents numberposts=-1 orderby=’title’ category_name=”namehere”]
 * [https://wordpress.org/plugins/wp-document-revisions/](https://wordpress.org/plugins/wp-document-revisions/)

The topic ‘Shortcode Issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-document-revisions_6c6c6c.svg)
 * [WP Document Revisions](https://wordpress.org/plugins/wp-document-revisions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-document-revisions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-document-revisions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-document-revisions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-document-revisions/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [jbailey4545](https://wordpress.org/support/users/jbailey4545/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/shortcode-issue-18/)
 * Status: not resolved