Custom Post Type rewrite rules not working, how to alter the rewrite order?

While you’ve found the problem already, here is some basic code to move a specific rule to the end of the rewrite rules with the rewrite_rules_array filter for people stumbling across a similar problem. Say I want to move the rule for ([^/]*)/([^/]*)/?$: add_filter(“rewrite_rules_array”, function($rules) { $keys = array_keys($rules); foreach($keys as $rule) { if($rule == … Read more

url keeps redirecting to a page

I was able to solve the problem by just clearing the cache. If anyone facing similar issue you may try Deleting the browser cache, or trying in incognito mode Contact hosting as ask them to clear any server cache or disable any caching features they have Save the permalink again or delete the rewrite table … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)