• Hi,

    I try to have the category of my custom post type before the post title in the permalink by putting /%category%/%postname%/ in permalink options, but it’s not replaced by the category. The permalink stays “stucked” as https://www.mywebsite.com/%category%/name-of-my-post

    here is my custom post type code:

    register_post_type('artists', array(
      'label' => __('Artists'),
      'singular_label' => __('Artist'),
      'public' => true,
      'show_ui' => true,
      'capability_type' => 'post',
      'hierarchical' => true,
      'menu_position' => 4,
      'supports' => array('title', 'editor'),
      'rewrite' => array('slug' => 'artists', 'with_front' => false),
      'menu_icon' => 'dashicons-id-alt',
      'has_archive' => true,
      'taxonomies' => array('category')
    ));

    https://www.ads-software.com/plugins/custom-post-type-permalinks/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category in permalink’ is closed to new replies.