Post permalinks go to the home page

For repairing htaccess in WordPress all you need is to delete this file and then enter wp-admin -> settings > permalinks > save. But i’m still not sure i understand the problem you are having.. If i understand, when friendly urls are on you get blank posts but not pages and when you are using … Read more

Pretty permalink structure with multiple (AND OR) taxonomies

In general there are the following considerations and choices: Does WP do this already? Best case scenario when use case is reasonably supported by core natively, just configure to that. Are “pretty” permalinks critical or optional? In general GET queries are much more easier to work with, at the cost of being “ugly”. Pretty permalinks … Read more

Permalink base only for posts

To get your desired structure: Go to Settings > Permalinks in Admin. Under Common Settings, click Custom Structure and enter /blog/%postname%/ Click Save Changes button. This sets the permalink structure for posts. Pages already appear at at the root of your install, so no modification is needed for that.

Pretty Filter URL

Here is my current code: function hm_base_date_query_vars($vars) { $vars[] = ‘base_date’; return $vars; } add_filter(‘query_vars’, ‘hm_base_date_query_vars’); function hm_base_date_rewrite_rule() { add_rewrite_rule( ‘^my-calendar/([^/]*)/?’, ‘index.php?pagename=my-calendar&base_date=$matches[1]’, ‘top’ ); } add_action(‘init’, ‘hm_base_date_rewrite_rule’, 10, 0); $base_date_test = get_query_var(‘base_date’); on the url example.com/my-calendar/foo my var $base_date_test returns null Maybe someone can help me. Thanks. // Edit: It works. I tried to call … Read more