How can I properly set up custom rewrite rules in WordPress to handle URLs like https://example.com/single-staff/12/abc
I’m working with WordPress and have created a page called “single-staff.” The URL https://example.com/single-staff works fine, but accessing https://example.com/single-staff/12/abc results in a 404 error. I added some code to the function.php
file and rebuilt the permalinks, but the issue persists.
`
add_filter(‘query_vars’, ‘gp_gotcha_queryvars’ );
function gp_gotcha_queryvars( $qvars ){