Tag Info

New answers tagged

0

You're currently placing your rewrite rules in the global scope, which means they execute as soon as your file is loaded, which may be too early. Instead try adding them on the init hook, or rewriting them to use the generate_rewrite_rules filter instead, e.g.: add_action('generate_rewrite_rules', 'themes_dir_add_rewrites'); function ...



Top 50 recent answers are included