Support » Plugins » Edit Slug from custom category

  • Hi, some pages I go to on my website show in the URL.

    How do I CHANGE “portfolio-view” from the url?
    In my functions.php file there’s nothing I can find.

    However I checked my theme file theme-init.php and I found this:

    function my_post_type_portfolio() {
    	register_post_type( 'portfolio',
    				'label' => __('Programs'),
    				'singular_label' => __('Programs Item', 'theme1373'),
    				'_builtin' => false,
    				'public' => true,
    				'show_ui' => true,
    				'show_in_nav_menus' => true,
    				'hierarchical' => true,
    				'capability_type' => 'page',
    				'menu_icon' => get_template_directory_uri() . '/includes/images/icon_portfolio.png',
    				'rewrite' => array(
    					'slug' => 'portfolio-view',
    					'with_front' => FALSE,
    				'supports' => array(
    	register_taxonomy('portfolio_category', 'portfolio', array('hierarchical' => true, 'label' => 'Programs Categories', 'singular_name' => 'Category', "rewrite" => true, "query_var" => true));
    add_action('init', 'my_post_type_portfolio');

    Ive tried changing it here and refreshing my permalinks file but nothing changes.. anyone?

  • The topic ‘Edit Slug from custom category’ is closed to new replies.