Change /gamepress_video_category/ slug (4 posts)

  1. bettarinho
    Posted 3 years ago #

    Hi all,

    how can I change the /gamepress_video_category/ to /archive/ in the video archives page?

  2. KOKOStern
    Posted 3 years ago #

    Looking for a solution for this exact problem, anyone?

  3. KOKOStern
    Posted 3 years ago #

    After about 3-4 hours of getting acquainted (I've never dealt with php before), I found the source of the problems.

    There are two issues:

    1. In taxonomy.php - search for "gamepress_video_categoryz"
    Notice that 'z'? remove it, shouldn't be there. This will make your video category have a title (it doesn't, have you noticed?)

    2. In functions.php - search for "gamepress_create_video_category"
    This is the function that creates the category, but there's are 2 lines missing that create our problem, at the end of "register_taxonomy" (before '));') add a line:

    'rewrite' => array( 'slug' => 'videos', 'with_front' => false ),

    Then just before the function ends with '}' add another line:


    This will change the URL to proper /videos/

    Kinda sloppy by the developer on an otherwise pretty good theme.

  4. bettarinho
    Posted 3 years ago #

    it doesn't work for me :(
    thank you as well

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.