Public Ticket #832834
Change slug


  •  1
    Marco started the conversation

    How can I change slugs like "opalsingleevent-session" with something more SEO friendly?


  •  2,123
    Opal replied

    Hi there,

    To make it, please go to file plugins/opalsingleevent/inc/post-types/class-post-type-session.php and find class:

    function definition(),  code:

    register_post_type( 'opalsgevent_session',
                apply_filters( 'opalsingleevent_posttype_session_params' , array(
                    'labels'            => $labels,
                    'supports'          => array( 'title', 'editor', 'thumbnail', 'excerpt' ),
                    'public'            => true,
                    'has_archive'       => true,
                    'rewrite'           => array( 'slug' => 'opalsingleevent-session' ),
                    'menu_position'     => 51,
                    'categories'        => array()
                ) )

    edit code:

    'rewrite'           => array( 'slug' => 'opalsingleevent-session' ),

    to: 'rewrite'           => array( 'slug' => 'your-slug' ),

    WpOpal Support Team

    We are located in GMT +7 time zone and we answer all questions within 12-48 hours in weekdays. In some rare cases the waiting time can be to 48 hours. Support tickets sent during weekends or public holidays will be processed next Monday or the next business day. 

    If you like our theme, Please vote it 5 stars. We are really really appreciate your vote :
    To vote go to http://themeforest.net/downloads then follow that link : Here

    Thanks and have a nice day

    Website: http://wpopal.com/ | Follow to Get Our Promotion Themes