Custom permalink structure gives 404
Yes, the correct tag is %monthnum%. Here’s a list of all the default rewrite tags, for reference.
Yes, the correct tag is %monthnum%. Here’s a list of all the default rewrite tags, for reference.
This is not a problem. Every / is already a static string. Avoid non-ASCII characters, dots (.) and %, restrict the string to lowercase letters a—z and maybe numbers – but make sure the pagination rules do not conflict with it. A static string /2/ might be read as page 2 by WordPress. Besides that, … Read more
I faced the same issue with some of my posts (not all). After updating my permalinks from /%category%/%post_id%/%postname%.html to /%postname%.html it was solved. Only issue that remains are the links to the posts shared on other websites. The link I shared (using the Sharexy plugin) to Facebook translated the permalink to the one with only … Read more
Strange number at the end of wordpress permalinks
How to add .html to the end of the permalink
looks like this will do what you want just write out a custom function for it: Custom field values in permalink something like this: as the link says: function jpb_custom_meta_permalink( $link, $post ){ $post_meta = get_post_meta( $post->ID, ‘<insert your meta key here>’, true ); if( empty( $post_meta ) || !is_string( $post_meta ) ) $post_meta=”<insert your … Read more
How to change hierarchical page permalinks to be flat
WordPress is suppressing page extensions!
You can check if the user has left it on the default, i.e. not chosen a permalink scheme, by testing if get_option( ‘permalink_structure’ ) is empty. I don’t think it’s polite to just change the user’s option for them, especially since they’ll need to update their .htaccess or equivalent before it’d actually work. Here’s a … Read more
301 Redirect for Non-Date Based URL’s