WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks not able to be edited on Custom Post Types (2 posts)

  1. Clicknathan
    Member
    Posted 1 year ago #

    I have a variety of custom post types, most using the following code or something similar to generate them:

    register_post_type('cpt_images', array(
    		'label' => 'Images',
    		'description' => '',
    		'public' => true,
    		'show_ui' => true,
    		'show_in_menu' => true,
    		'capability_type' => 'post',
    		'hierarchical' => false,
    		'rewrite' => array('slug' => 'images'),
    		'query_var' => true,
    		'has_archive' => true,
    		'supports' => array('title','editor','excerpt','custom-fields','revisions','thumbnail','author'),
    		'taxonomies' => array('category','post_tag'),
    		'labels' => array(
    			'name' => 'Images',
    			'singular_name' => 'Image',
    			'menu_name' => 'Images',
    			'add_new' => 'Add Image',
    			'add_new_item' => 'Add New Image',
    			'edit' => 'Edit',
    			'edit_item' => 'Edit Image',
    			'new_item' => 'New Image',
    			'view' => 'View Image',
    			'view_item' => 'View Image',
    			'search_items' => 'Search Images',
    			'not_found' => 'No Images Found',
    			'not_found_in_trash' => 'No Images Found in Trash',
    			'parent' => 'Parent Image')
    		)
    	);

    For some reason, I can't edit them via the Permalinks: area just below the post title input field on the post editor screen. You know, where it typically shows the URL with the editable part highlighted yellow?

    Has anyone ever encountered this?

  2. visualrhythm
    Member
    Posted 1 year ago #

    I am having this same issue. I am using the plugin Custom Post Type UI and trying to debug.

    My guess is that it is a WP version update issue or there is a setting in the Admin that somehow blocking editing these post types.

    If anyone has a trick, please speak up.

    Meanwhile, I'll be sure to update if I find a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic