Author permalink

What you need to do is make sure you have a unique base for your author permalinks. This sample code would do what you need. You may need to flush the rules after you include this code in your functions.php. A rewrite rules inspector plugin will help you get this all working smoothly: function wpse263881_init() … Read more

WP gives 404 error for custom post type with GET variable

Numbers work because single posts can have pagination, and there is a rewrite rule to support that. If you want to add an additional parameter after a permalink, add a rewrite endpoint. add_rewrite_endpoint( ‘show’, EP_PERMALINK ); EDIT- Here’s an internal rewrite example, assuming your custom post type slug is type1: add_rewrite_rule( ‘c/([^/]+)/([^/]+)/([^/]+)/?$’, ‘index.php?type1=$matches[1]&type2=$matches[3]’, ‘top’ );

WordPress page not showing up – replaced with last 10 posts?

The problem is with the rewrite rules generated with the post type- they’re a bit greedy and are capturing those requests. WordPress is trying to query for a matching category_type, which isn’t actually an object type, and in the absence of any other valid query argument, it runs the main blog query. You could manually … Read more

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