Update Broke my Pods
-
I’ve updated Pods on two of my sites that had a function for “Customized Pods UI” so we could easily reorder the pods entries. The update has kept the ability to reorder, however if you click the main Pods menu tab – there are no options to create a new Pod, edit, etc – the whole screen has been replaced it with the Pod entries of the Pod I have assigned the UI.
Screenshot:
https://krmd.co/files/pods-no-admin-screen.pngThis is the UI code:
function pods_ui_staff() { $icon = ''; add_object_page('Staff', 'Staff', 'read', 'staff', '', $icon); add_submenu_page('staff', 'Staff', 'Staff', 'read', 'staff', 'staff_page'); } function staff_page() { $object = new Pod('staff'); $add_fields = $edit_fields = array( 'name', 'slug', 'staff_first_name', 'staff_title', 'staff_image', 'staff_thumb', 'staff_bio', 'category', 'displayorder'); $object->ui = array( 'title' => 'Staff Member', 'reorder' => 'displayorder', 'reorder_columns' => array( 'name' => 'Name', 'staff_title' => 'Job Title'), 'category' => 'Category', 'columns' => array( 'name' => 'Name', 'staff_title' => 'Job Title', 'category' => 'Category', 'created' => 'Date Created', 'modified' => 'Last Modified' ), 'add_fields' => $add_fields, 'edit_fields' => $edit_fields ); pods_ui_manage($object); } add_action('admin_menu','pods_ui_staff');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Update Broke my Pods’ is closed to new replies.