Passing URL parameters to WordPress pages and pretty url

Question

I create shortcode like this

function test_func( $atts ) {   

    return $_GET['myvar'];
}
add_shortcode( 'test', 'test_func' );

and one page with this name myparameters

so this is the final url

http://website.com/myparameters

if I try this works perfect

http://website.com/myparameters/?myvar=theparameter

But i like have pretty url or friendly url like this

http://website.com/myparameters/theparameter/

But show page not found.

I try some tutorial like this LINK but nothing happen

0
, , metalbox 5 months 0 Answers 75 views 0

Leave an answer