• Resolved danc77

    (@danc77)


    Hi Simon

    Thanks for great plugin. Im trying to change listing slug using this code bellow:

    /**
     * Custom listing slug
     */
    add_filter( 'wpsight_rewrite_listings_slug', 'my_rewrite_listings_slug' );
    
    function my_rewrite_listings_slug( $slug ) {
    
    	$slug = 'custom-slug';
    
    	return $slug;
    
    }

    Updated both polylang and wp permalinks structure, but slug is still listings.
    My setup is WP 4.6.1, Theme oslo, im missing something simple just unable to see it

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter danc77

    (@danc77)

    And disregard the question please. Reinstalling code snippets plugin solved the problem.

    Same issue..

    Plugin Author WPSight

    (@wpsight)

    Hello,

    this should already been solved, right?

    The issue was basically that the permalinks hasn’t been re-saved after the code snippet has been added. This is an important step to get the htaccess file regenerated/adapted in order that the new URLs doesn’t redirect to a 404.

    Let me know if anything remains unclear.

    All the best

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing default slug listings’ is closed to new replies.