0

http://builderux.com/neighborhood/detail/4978

this url is working but I want to show the 4978 id's name instead of 4978 id.Look like as below url .

http://builderux.com/neighborhood/BORDEAUX

Please let me know if this one is possible.

add_action( 'init', 'init_custom_rewrite' );

function init_custom_rewrite() { add_rewrite_rule(
'^neighborhood/([^/])/([^/])/?',
'index.php?page_id=1395&action=$matches[1]&sid=$matches[2]',
'top' ); }

add_filter('query_vars', 'my_query_vars', 10, 1);

function my_query_vars($vars) { $vars[] = 'action'; $vars[] = 'sid'; return $vars; }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.