How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Review url

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1616
    seobaz
    Participant

    Hi ı want to change http://www.aaa.com/review/betfair/

    http://www.aaa.com/inceleme/betfair/

    how can I do it

    • This topic was modified 2 years, 9 months ago by seobaz.
    #1620
    admin
    Keymaster

    Hi,

    You can change it by adding the following snippet to your functions.php in your child theme:

    `add_filter( ‘register_post_type_args’, ‘change_slug_affiliates_cpt’, 10, 2 );
    function change_slug_affiliates_cpt( $args, $post_type ) {

    if ( $post_type == ‘affiliates’) {
    $args[‘rewrite’][‘slug’] = ‘inceleme’;
    }

    return $args;
    }`

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.