Tag Info

New answers tagged

4

WordPress uses a set of rewrite rules to be able to convert an url into a database query. The regex that handle urls for pages is very general, IIRC it is something like (.+.?)/?, it mathes pratically everything has not be already matched by other rules. For this reason is not possible to write a rewrite rule that will work in your case: because you can't ...


-1

add_action('admin_menu', function() { remove_meta_box('pageparentdiv', 'chapter', 'normal');}); add_action('add_meta_boxes', function() { add_meta_box('chapter-parent', 'Part', 'chapter_attributes_meta_box', 'chapter', 'side', 'high');}); function chapter_attributes_meta_box($post) { $post_type_object = get_post_type_object($post->post_type); ...


0

maybe, that post has the parent postID(check their parent post ID's). I doubt,their parent post doesnt exist, and when wordpress tries to get the permalink (with included slugname of its parent),then it adds only the empty slash.


0

I had the same issue 5000+ pages, which made it take quite some time. The issue was Page Attributes which used wp_dropdown_pages -> loading all pages! Since I still needed the possibility to use templates, only removing Page Attributes wasn't going to solve it. And since I don't like to hack directly in core files, my solution was to remove then re-enable ...



Top 50 recent answers are included