Title: 404 on associated objects
Last modified: August 22, 2016

---

# 404 on associated objects

 *  Resolved [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/)
 * Hello,
    The plugin works great, except when i try to view an “associated item”
   page, my permalinks are set as :** [http://www.domain.com/item/my-object-slug/](http://www.domain.com/item/my-object-slug/)**
 * but it generate a 404 error ;-(
    I’ve tried to set the default permalinks structure
   on but it doesn’t work either…
 * Is the plugin able to display each “categories” (associated object) in a dedicated
   page?
    i really need to organize the bp docs in several categories!
 * Thanks for your help
 * [https://wordpress.org/plugins/buddypress-docs/](https://wordpress.org/plugins/buddypress-docs/)

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

 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507137)
 * Hi, after a quick check into the plugin’s files, i know the issue comes from 
   register_taxonomy with “the slug “item”
    If, in my wp admin, i set the permalinks
   to the default structure : [http://www.domain.com/?bp_docs_associated_item=mypostname](http://www.domain.com/?bp_docs_associated_item=mypostname)
   Than it works, so please help me to enable the slug “item” with a permalink’s
   setting like: [http://www.mydomain.com/%postname%/](http://www.mydomain.com/%postname%/)
 * i don’t have any problem with taxonomy slug with other plugins…
    my theme is 
   the roots.io theme
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507149)
 * Hm. I guess I never really intended for these taxonomy archives to be accessible
   on the front end. I’m actually surprised I didn’t mark them public=false for 
   that reason. I’m afraid I don’t have a clear sense of how to fix this – maybe
   the rewrite rules aren’t being registered properly?
 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507150)
 * Thanks for your reply Boone,
    is there a way i can create a page with a list 
   of different objects (like categories) ex: My bp doc’s category 1 My bp doc’s
   category 2 etc…
 * thanks for your answer 😉
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507155)
 * Are “category 1” and “category 2” bp_docs_tag tags?
 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507162)
 * Nope, i understand that the plugin offers tag support but the best way would 
   be to use the taxonomy “item”. Even if an associated object can be a group or
   a member, a great feature would be to use categories to enable global Archive
   pages with all the bp docs categories in, for example:
    Item/bp-docs-litterature/
   Item/bp-docs-science/ Item/bp-docs-history/ Etc… Each of them would be a category
   like in the buddypress group documents plugin… I can’t figure out how to create
   a bp focs archive page (i’ve tried to use the wp template hierarchy but it didn’t
   work…) thanks for your help
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507169)
 * It should be possible to do this relatively manually, by calling up a `WP_Query`
   that uses a `tax_query` to get the documents you need (or you could try using
   a `bp_docs_has_docs()` loop, though I’m not sure how successful you’ll be out
   of the normal Docs contexts). As for getting this to work using the permalink
   structures you’ve described, I’m afraid you’re on your own for the time being
   🙂 But feel free to open an enhancement suggestion at [https://github.com/boonebgorges/buddypress-docs/issues](https://github.com/boonebgorges/buddypress-docs/issues),
   and I can consider making it more automatic in a future version.
 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507170)
 * Ok thanks, i’ll try with wp_query with a dedicated template and i’ve got another
   idea : integrate ‘item’ as a post type in my functions.php theme file to get 
   the proper archive list i need with bp docs…
    I also will pull some request on
   gitHub Regards,
 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507178)
 * i’ve manage to display some bp_doc post types on a specific page with this query:
 *     ```
       $args_docs = array(
         'post_type' => 'bp_doc',
         'bp_docs_associated_item' => 'my-associated-category',
       );
       $query_bp_doc = new WP_Query( $args_docs );
   
       while ( $query_bp_doc->have_posts() ) {
         $query_bp_doc->the_post();
         // the doc data here...
       }
       ```
   
 * but the plugin doc’s front end interface was better so i will finally follow 
   your advice and use the tag feature, and use some specific tags as categories
   with different links like:
    [http://www.domain.com/docs/?bpd_tag=category1](http://www.domain.com/docs/?bpd_tag=category1)
   [http://www.domain.com/docs/?bpd_tag=category2](http://www.domain.com/docs/?bpd_tag=category2)
   and so on…
 * Thanks for your precious help !
 *  Thread Starter [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507179)
 * i confirm you should implement the “docs categories” feature in a next version
   
   i mark this topic as resolved 😉

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

The topic ‘404 on associated objects’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

## Tags

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

 * 9 replies
 * 2 participants
 * Last reply from: [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/404-on-associated-objects/#post-5507179)
 * Status: resolved