Custom taxonomy return 404
Custom taxonomy return 404
Custom taxonomy return 404
the easiest and best way to do that is to edit your .htaccess file. Your .htaccess file is located in your FTP under the folder public_html (usually). This way, when a user is trying to access your old url /producto/ it will immediately change to /product/ as a 301 permanent redirect. In that file, you … Read more
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
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
You could force WP’s hand here with a filter and action. Doing this doesn’t give me the warm fuzzies- I haven’t really tested it, so it may have unintended side-effects. Maybe there’s a better way to do this. The first step (after setting permalinks to /%monthnum%/%day%/) is to hook parse_query and test for requests where … Read more
There could be several issues going on here. First of all, the easiest thing to do would be to go to the wp admin and visit the permalinks page. You may or may not need to press the save button twice. Also, check your .htaccess file for any redirecting to the old domain. I think … Read more
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.
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
You have to permalinks for the about us page 1 is /About 2 is /about all you need to do is update your menu with the correct page link which is the /About page if that makes any sense
That is structure not the unique slug of the post or category. And that has nothing to do with the URL. You can add post with same slug if there are different post_type/pages/post.