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
Than it works, so please help me to enable the slug “item” with a permalink’s setting like: http://www.mydomain.com/%postname%/
i don’t have any problem with taxonomy slug with other plugins…
my theme is the roots.io theme
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?
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 π
Are “category 1” and “category 2” bp_docs_tag tags?
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
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, and I can consider making it more automatic in a future version.
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,
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=category2
and so on…
Thanks for your precious help !
i confirm you should implement the “docs categories” feature in a next version
i mark this topic as resolved π