Skip to content
pglewis edited this page Nov 23, 2012 · 2 revisions

My Pods page is not working, I'm getting a 404 error

Make sure you are not using the default Permalink setting in WordPress under Settings => Permalinks. Also, it never hurts to re-save the settings there to flush the WordPress rewrite rules.

pods_ui() is not working, but the 1.x pods_ui_manage() function does work

Try pods_ui( $obj, TRUE ) (TRUE enables deprecated options)

This write-up by Kamil Grzegorczyk covers the deprecated parameters as well as examples of the 2.0 equivalents: http://lowgravity.pl/blog/introduction-to-podscms-2-0-part-2-pods_ui-parameters/

Where is the "Duplicate" option for Pod items in the default UI

The "duplicate" option is available if you use pods_ui() to build your own custom menu.

For the default UI: in 2.1 when we open up the UI controls, you can turn on/off this sort of stuff easily. For now, simply add a filter to remove the action from the disable_actions option set by Pods. We'll have an option in the UI manager for it and make sure it's easier in the future.

add_filter( 'pods_admin_ui', 'enable_pods_duplicate', 10, 2 );

function enable_pods_duplicate ( $ui, $pod ) {
    // Enable duplicate for users with access to add
    if ( is_super_admin() || current_user_can( 'delete_users' ) || current_user_can( 'pods' ) || current_user_can( 'pods_content' ) || current_user_can( 'pods_add_' . $pod ) ) {
        unset( $ui[ 'actions_disabled' ][ 'duplicate' ] );
    }

    return $ui;
}

How to get Simple Relationship value=>label data

$value = PodsForm::field_method( 'pick', 'simple_value', $value, $field_options );

field() will return raw array of values display() list of labels

I unchecked "Show Admin Menu in Dashboard" and added custom pods_ui() code but an additional menu item called "Pods" got created.

1.x displayed a list of Pods that had no ui, so you could manage them. The new "Pods" menu is basically that same functionality, primarily for 1.x users migrating to 2.0 (otherwise, they would have to re-enable "Show Admin Menu in Dashboard" manually for each Pod that needed it).

You can disable the secondary Pods menu completely with: add_filter( 'pods_admin_menu_secondary_content', '__return_false' );

< ?php space inserted into code for templates etc

We are looking into a way to resolve this. For now, any users encountering this issue, try disabling the "WordPress should correct invalidly nested XHTML automatically" from the Settings > Writing options.

Custom post types do not appear on category archive pages

http://podsframework.org/forums/topic/custom-post-types-not-showing-up-on-category-archive-pages/

Magic tags are not working in my theme template file

Magic tags are not supported in WordPress php page templates.

Clone this wiki locally