Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hello I have something like this in the url: http://myblog.com/category/subcategory/postname/?var=true

Using it on functions.php:

function add_query_vars($vars) {
   $vars[] = "var";
   return $vars;
}
add_filter('query_vars', 'add_query_vars');

But I need it: http://myblog.com/category/subcategory/postname/true

How can get it?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.