Hi,
thank you for your help but I know how to make link to the page. Problem is that when I go to http://www.example.com/category_name/post_name/specs I got 404 error. I made plugin like this:
function add_query_vars($aVars) {
global $wp_query;
$aVars[] = "specs"; // represents the name of the product category as shown in the URL
return $aVars;
}
//// hook add_query_vars function into query_vars
add_filter('query_vars', 'add_query_vars');
function add_rewrite_rules($aRules) {
$aNewRules = array('(.+)/(.+)/specs' => 'index.php?name=$matches[2]&specs=specs');
$aRules = $aNewRules + $aRules;
return $aRules;
}
add_filter('rewrite_rules_array', 'add_rewrite_rules');
But when I go to http://www.example.com/category_name/post_name/specs I’m redirected to http://www.example.com/category_name/post_name and I can’t find $specs in $wp_query.
Thanks for help