WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Update Broke my Pods (3 posts)

  1. krmediadesigns
    Member
    Posted 1 year ago #

    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:
    http://krmd.co/files/pods-no-admin-screen.png

    This 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');

    http://wordpress.org/extend/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Pods Admin is now at the bottom of the sidebar menu, the 'Pods' menu shows content from your Pods that aren't set to show as a top-level menu item.

  3. krmediadesigns
    Member
    Posted 1 year ago #

    Oh my goodness, that one went right over my head. Thank you for your quick reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.