Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We will see here how to create a second wiki page for a certain category (or several categories if needed) : 

...

Code Block
<?php Woffice_Frontend::frontend_render('wiki',$process_result, 10); ?>

You can get the id of the wiki categories here:

Image Modified

Repeat this for each new wiki template you have created.

After, open the file single-wiki.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 (thumbs up).

If you have any question or if you need help, just open a new ticket.

...