Change slug from 'game-review' to 'review'
-
Basically what I’m trying to do is change any reference to ‘game-review’ to simply ‘review’ specifically, in the site URL. In functions.php I’ve made some edits in the “Create custom post types” section as follows:
function gamepress_register_reviews_post_type() { // Game reviews register_post_type( 'gamepress_reviews', array( 'labels' => array( 'name' => __( 'Reviews', 'gamepress' ), 'singular_name' => __( 'Review', 'gamepress' ), 'add_new' => __('Add new review', 'gamepress'), 'edit_item' => __('Edit review', 'gamepress'), 'new_item' => __('New review', 'gamepress'), 'view_item' => __('View review', 'gamepress'), 'search_items' => __('Search reviews', 'gamepress'), 'not_found' => __('No reviews found', 'gamepress'), 'not_found_in_trash' => __('No reviews found in Trash', 'gamepress'), ), 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'exclude_from_search' => false, 'hierarchical' => false, 'menu_position' => 20, 'has_archive' => true, 'rewrite' => array('slug' => 'review'), 'supports' => array('title','editor','author','thumbnail','excerpt','trackbacks','comments','revisions'), 'taxonomies' => array('post_tag'), 'yarpp_support' => true ) );
This changed the text in the admin panel, and when making a review, WP points to /review/title instead of /game-review/title but it’s just taking me to a 404 page now. Everything is apparently still being posted in /game-review but I can’t find any other reference to it in functions.php
Any help with this is very much appreciated .
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change slug from 'game-review' to 'review'’ is closed to new replies.