We will see here how to create a second wiki page for a certain category (or several categories if needed) :
...
In these, search for:
Code Block |
---|
<?php wofficeWoffice_Frontend::frontend_render('wiki',$hasError$process_result); ?> |
And add the id of the category in this way:
Code Block |
---|
<?php wofficeWoffice_Frontend::frontend_render('wiki',$hasError$process_result, 10); ?> |
You can get the id of the wiki categories here:
Repeat this for each new wiki template you have created.
After, open the file single taxonomy-wiki-category.php, and search for:
...
$wiki_display =
...
new Woffice_Wiki_Display_Manager(0);
And replace with:
Code Block |
---|
global $post; $parent = get_the_terms ($post->ID, 'wiki-category'); $terms = get_terms('wiki-category', array('hide_empty' => false, 'child_of' =>$parent[0]->parent)$wiki_display = new Woffice_Wiki_Display_Manager(YOUR_CATEGORY_ID); |
All done .
If you have any question or if you need help, just open a new ticket.
...