Your account expired support, please renew to get your support.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12266
    marjandbk
    Support Expired

    How to change url slug for amenities.

    Now it is:

    http://www.example.com/ba_amenities/AC

    I would like it to be like, for better SEO:
    http://www.example.com/amenities/AC

    Thanks in advance,
    Marjan

    #12273

    Hi you,

    Please go to BA Settings -> Taxonomies Slug -> Add your slug: https://prnt.sc/19fitje

    #12285
    marjandbk
    Support Expired

    I did that but still its ba_amenities in the URL.

    #12290

    Please send Admin web account for me, I will check and try to help you.

    #12291

    Please send Admin web account for me, I will check and try to help you.

    #12350
    marjandbk
    Support Expired
    This reply has been marked as private.
    #12357

    Hi you,

    I fixed this issue, you need to use this code:

    add_filter( 'register_taxonomy_args', 'triply_amenities_change_taxonomies_slug', 10, 2 );
    function triply_amenities_change_taxonomies_slug($args, $taxonomy){
    	if ( 'ba_species' === $taxonomy) {
    		$args['rewrite']['slug'] = 'species';
    	}
    	return $args;
    }
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.