Support » Plugin: WordPress Wiki » [Plugin: WordPress Wiki] Changing the URL in WP Wiki

  • Hi guys,

    I’m using WP Wiki and I noticed that by default, the URL is created as /wiki/WikiPageName

    Is there any way to change the /wiki/ bit? It’s really not appropriate in the context of this site. I’ve had a poke around in the code and thought that I’d found the answer in line 175 of /controllers/wiki_pages.php:

    $wiki_parser->reference_wiki = get_bloginfo('url').'/wiki/';

    I tried changing the /wiki/ part to something else, and also the similar code on lines 428 and 479 of the same file. I deleted the plugin from WordPress, then reinstalled it and reactivated it. However, when I created a test page, the URL was still /wiki/ so I’m guessing there was something somewhere else I had to change.

    Any ideas? Has anyone done this before?



Viewing 1 replies (of 1 total)
  • I figured this out… might be too late or you already got it done yourself.

    I made changes to the two files below (I am using ‘documentation’). I don’t have any other pages or posts using that same permalink path. I also had to remove all my wiki pages, deactivate the plugin and activate it again. Only after re-activation did my new path get used.

    around line 46
    'rewrite' => array('slug' => 'wiki', 'with_front' => FALSE)

    around line
    $wiki_parser->reference_wiki = get_bloginfo('url').'/wiki/';

    around line 435
    $new_link = '<a href="'.get_bloginfo('url').'/wiki/new'.$get_params.'">Click here to create it.</a>';

    around line 488
    $url = get_option('siteurl') . '/wiki/' . ($namespace ? $namespace.'/' : '') . $topic;

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Wiki] Changing the URL in WP Wiki’ is closed to new replies.