No Ones Been Able to Override my WordPress Rewrite Rule Issue!
No Ones Been Able to Override my WordPress Rewrite Rule Issue!
No Ones Been Able to Override my WordPress Rewrite Rule Issue!
Use a underscore instead of a hyphen. You can see others are having the same issue. The underscore exchange fixes the problem. Using underscores instead of hyphens in the permalink
If you want to display the current permalink outside The Loop, then do the following: Access the global $post variable get_the_permalink($post->ID) Youf code as follows: global $post; echo get_the_permalink($post->ID);
When category name and title are the same … WP will select archive.php instead of single.php
Ok one way to check them up is to log them somewhere after creating post types and taxonomies: add_action(‘init’,’register_customs’); function register_customs(){ // […] create types and tax global $wp_rewrite; // log $wp_rewrite somewhere }
The problem is that the rewrite rules overlap, WordPress is trying to find a category name that matches the post slug. A possible solution is to do a little manual query parsing, check if the request contains category_name and is a term first, and reset query vars to post name if nothing is found: function … Read more
Are you set posts with right category before upload post? Can I have temporary user account for testing, view and solve problem. Let’s try changing your default post category and delete uncategorized in wordpress
query_posts should never be used. Right now you are getting pagination urls that are relevent to whatever you feed to the query_posts but they lack the url of the page. In general, regardless of the query_posts issue, pagination in internal loops should use pagination parameters which are different than those used by wordpress core, or … Read more
The problem is that id is no longer a $_GET variable, and is instead a WP query variable, so use the get_query_var function instead
When you register your post type, in your options array, set ‘rewrite’ => array( ‘with_front’ => false ), this will remove the “blog” from the front. Remember to flush your permalinks after you make this change. Not sure about categories being programmed through wordpress (it COULD be possible) but you could do a rewrite rule … Read more