• Hi,

    I am using wordpress version 4.9.1

    Intially I used the postname as permalink for better SEO. But our site only available in arabic language so arabic postname is converted to ascii code and it becomes lengthier URL. So tried to avoid post name and changed tonplain url ?p=/%post_id/. But the custom posts still showing as postname with URL and installed your extension CPTP and selected /%post_id/ as permalink for the custom post carricatures

    But not worked

    In function.php

    register_post_type( ‘caricatures’,
    // CPT Options
    array(
    ‘labels’ => array(
    ‘name’ => __( ‘Caricatures’ ),
    ‘singular_name’ => __( ‘Caricature’ )
    ),
    ‘public’ => true,
    ‘has_archive’ => true,
    ‘rewrite’ => [
    ‘with_front’ => true
    ],
    ‘cptp_permalink_structure’ => ‘%post_id%’,
    ‘rewrite’ => array(‘slug’ => ‘caricatures’),

    )
    );

    What is the issue

    The page I need help with: [log in to see the link]

The topic ‘plugin not working on my custom post type’ is closed to new replies.