controvi
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] All but 1 cpt dissapearedI added the cpt’s as when they did all show.
Now I added the 10th cpt to it and that started showing again.
But for some reason all the post types that are now showing accept the last added can be edited but don’t do anything to the post types that were originally gone.Below is the code you asked for.
Hope you can find anything.{"faqs":{"name":"faqs","label":"FAQs","singular_label":"FAQ","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"vraag-en-antwoord","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-welcome-learn-more","supports":["title","editor","thumbnail"],"taxonomies":["category"],"labels":{"menu_name":"FAQs","all_items":"All FAQs","add_new":"Add FAQ","add_new_item":"New FAQ","edit_item":"Edit FAQ","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"voor-de-pers":{"name":"voor-de-pers","label":"Pers","singular_label":"Pers","description":"Pers berichtenn","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-admin-site","supports":["title","editor"],"taxonomies":[],"labels":{"menu_name":"Pers","all_items":"Alle berichten","add_new":"Nieuw bericht","add_new_item":"Nieuw bericht","edit_item":"Wijzigen","new_item":"Nieuw Bericht","view_item":"Bekijk bericht","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"usps":{"name":"usps","label":"USP's","singular_label":"USP's","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail"],"taxonomies":[],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"in_het_nieuws":{"name":"in_het_nieuws","label":"In het nieuws","singular_label":"In het nieuws","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title"],"taxonomies":[],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"team":{"name":"team","label":"Team Members","singular_label":"Team Member","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-businessman","supports":["title","editor","thumbnail"],"taxonomies":["category"],"labels":{"menu_name":"Team members","all_items":"All members","add_new":"New member","add_new_item":"Add new member","edit_item":"Edit member","new_item":"New member","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"media_quotes":{"name":"media_quotes","label":"Quotes","singular_label":"Quote","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"false","rewrite_slug":"","rewrite_withfront":"false","query_var":"false","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-format-quote","supports":["title"],"taxonomies":[],"labels":{"menu_name":"Quotes","all_items":"All Quotes","add_new":"Add Quote","add_new_item":"Add New Quote","edit_item":"Edit Quote","new_item":"New Quote","view_item":"View Quote","search_items":"Search Quote","not_found":"Quote Note Found","not_found_in_trash":"No Quotes Found in Trash","view_items":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"partners_samenwerken":{"name":"partners_samenwerken","label":"Partners - samenwerking","singular_label":"Partners - samenwerking","description":"","public":"false","publicly_queryable":"false","show_ui":"true","show_in_nav_menus":"false","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail"],"taxonomies":[],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"customers":{"name":"customers","label":"Customers","singular_label":"Customer","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"false","rewrite_slug":"","rewrite_withfront":"false","query_var":"false","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-id-alt","supports":["title","editor","thumbnail"],"taxonomies":[],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"flight_cancellation_compensation":{"name":"flight_cancellation_compensation","label":"Cancelled v2","singular_label":"Cancelled","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"vlucht-geannuleerd","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-cloud","supports":["title","custom-fields","page-attributes"],"taxonomies":["category"],"labels":{"menu_name":"Cancelled","all_items":"All items","add_new":"New item","add_new_item":"New item","edit_item":"Edit item","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""},"flight_delay_compensation":{"name":"flight_delay_compensation","label":"Delayed","singular_label":"Delayed","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"vlucht-vertraagd","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-cloud","supports":["title","revisions","page-attributes"],"taxonomies":["category"],"labels":{"menu_name":"Delayed","all_items":"All items","add_new":"New item","add_new_item":"New item","edit_item":"Edit item","new_item":"New item","view_item":"View item","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":""},"custom_supports":""}}- This reply was modified 8 years, 7 months ago by controvi.
- This reply was modified 8 years, 7 months ago by controvi.
- This reply was modified 8 years, 7 months ago by Geoffrey Shilling. Reason: Added code tag
- This reply was modified 8 years, 7 months ago by Geoffrey Shilling.
Forum: Plugins
In reply to: [Custom Post Type UI] All but 1 cpt dissapearedHey Michael,
Thank you for your reply.
I have been looking into the issue more and found that , like you said, some data was lost.I found the cptui_post_types field in the database was only containing the last post type I added.
Now I have no clue what has caused it but luckily I have another database that has the same post types. (accept for the last one I added).
So I copied the database field from the other page and sure enough all the post types are again visible.But when I add the latest post type to the database value (de-serialized added cpt and serialized again) it didn’t show in wordpress.
Now you could say I had made a mistake somewhere in the code but I removed one of the first from the array of cpt’s and suddenly the last one showed up.
I am guessing at the moment that it has something to do with the fact that I currently have 9 CPT’s and am adding a 10th.
Would you know if there could be an issue on that department ?
Cheers