url not using query string no longer working

So I never found out why this broke in the first place, but I did find a solution that forces the proper url to work add_action( ‘init’, ‘add_mypage_rule’ ); function add_mypage_rule(){ add_rewrite_rule(‘^item/([^/]*)/?’,’index.php?pagename=item’,’top’); } Sussed out from here: https://stackoverflow.com/questions/18713230/wordpress-url-rewriting-parameters-in-url

remove SLASH on single_post but KEEP on categories and parent pages

After SO MANY research, I found a Great Simple solution via https://stackoverflow.com/a/54251892/10403689 (vote this ⬆UP⬆) Your Permalink Structure should be: /%category%/%postname%/ function no_post_slash( $string, $type ){ if($type == ‘single’) $string = untrailingslashit($string); return $string; } add_filter(‘user_trailingslashit’, ‘no_post_slash’, 70, 2); BUT this is only working on single_post not pages

index.php in URL

Go to Settings >Permalink Settings. Check Post name Click on Save Change button. And this should be the default htaccess. WordPress can manage it’s own htaccess so no need to manually add htaccess rules. I would delete your htaccess file and then save permalink settings. # BEGIN WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase … Read more

Custom Endpoint For Specific Custom Post Type

I noticed that your post type is hierarchical, so you could actually add page-attributes to the supports array in your post type args, i.e. ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘page-attributes’), then you could create those sub-sections as child of your movie posts. But yes, the child posts will need to use unique slugs like news, … Read more