-
Notifications
You must be signed in to change notification settings - Fork 0
General_2.0
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.
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/
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;
}
$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' );
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.
http://podsframework.org/forums/topic/custom-post-types-not-showing-up-on-category-archive-pages/
Magic tags are not supported in WordPress php page templates.