Pagination in wp-admin for CPT
-
Hi,
I have created a CPT using register_post_type with the following args:
"label" => $aLabels['name'], "labels" => $aLabels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => true, "show_in_menu" => true, "exclude_from_search" => true, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array("slug" => $slug, "with_front" => true), "query_var" => true, "menu_icon" => site_url('/wp-content/uploads/icon.png'), "supports" => array("title", "editor", "excerpt", "custom-fields"), "taxonomies" => array('court', 'rating', 'categorisation'),
Everything works perfectly except pagination on the first page of the admin post list i.e.
https://dev.caselaw.co.za/wp-admin/edit.php?post_type=case
does not display at all.From page 2 onwards, it is perfect.
https://dev.caselaw.co.za/wp-admin/edit.php?post_type=case&paged=2
I have Googled the world and can’t find a similar problem, never mind a solution! Can anyone make a suggestion?
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Pagination in wp-admin for CPT’ is closed to new replies.