Okay
  Public Ticket #1343096
/services/ slug - how to change it?
Closed

Comments

  •  1
    seekman started the conversation

    Hello, how can I change the /services/ slug?

    I want it to be a different word.

    Thanks

  •  2,009
    Ocean replied

    Hi,

    open file wp-content/plugin/service/ot_service

    find "rewrite"

    then change

    'rewrite'  => array( 'slug' => 'services' ), 

    to 

    'rewrite'  => array( 'slug' => 'your-name' ),

  •  1
    seekman replied

    Hello, I made this change.

    Now it is:

    $args = array(
    'labels' => $servicelabels,
    'hierarchical' => false,
    'description' => 'Manages service',
    'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'menu_position' => null,
    'menu_icon' => 'dashicons-admin-generic',
    'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite'  => array( 'slug' => 'masaze' ),
            'capability_type' => 'post',
    'supports' => array( 'title','editor','thumbnail','excerpt','comments','custom-fields'),
    );

    Then I saved the permalinks.

    However now the massage section is showing the blog posts.

    In other words the blog is /news/, the services are /masaze/, but both show the blog posts.

    How can I make now /masaze/ to show the services?

  •  1
    seekman replied

    Problem resolved.

    I had to rename also the slug of the services pages. Both services slug and services page slug were "masaze". So I renamed the page slug, and now it's working fine.

  •  2,009
    Ocean replied

    Great!