WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Wiki
Changing the URL in WP Wiki (2 posts)

  1. Seona
    Member
    Posted 2 years ago #

    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?

    Cheers,

    Seona.

    http://wordpress.org/extend/plugins/wordpress-wiki/

  2. kurtfm
    Member
    Posted 2 years ago #

    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.

    ..plugins/wordpress-wiki/model/wiki_post_type.php
    around line 46
    'rewrite' => array('slug' => 'wiki', 'with_front' => FALSE)

    ..plugins/wordpress-wiki/controllers/wiki_pages.php
    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;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic