rewrite_rules_array Create Plugin with parameter
-
Hello,
i have a problem. I want to create my one Plugin. I set a shortcode in an page (/test/). This works and show a list of cars. Now I want to link the cars to /test/Ford/ but it say “not Found”. Whats wrong?
[code]
function create_rewrite_rules($rules) {
global $wp_rewrite;
$newRule = array('test/(.+)/' => 'index.php?p=54&label='.$wp_rewrite->preg_index(1));
$newRules = $newRule + $rules;
return $newRules;
}
[/code]
- The topic ‘rewrite_rules_array Create Plugin with parameter’ is closed to new replies.