cat
accepts category IDs, not slugs or names. a better method here is to use the pre_get_posts
action, the Codex page has an example that does exactly what you’re trying to do.
cat
accepts category IDs, not slugs or names. a better method here is to use the pre_get_posts
action, the Codex page has an example that does exactly what you’re trying to do.