I wanna have
example.com/post-name
-> uses template1.phpexample.com/post-name/details
-> uses template2.php
I found this discussion, so I implemented the codes in my theme’s functions.php
. I also made the changes from the older replies but I get this error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'detail_rewrite_rules' not found or invalid function name in /public_html/wp-includes/plugin.php on line 173
I didn’t edit plugin.php
and on line 173 is:
$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
I hope someone can help me, it seems a fairly easy job but I might be wrong.