Tag Info

Hot answers tagged

5

ACF is a great plugin that makes WordPress feel more like a 'real' CMS. It lets you turn attach any data type to any post type (built-in or custom), has conditionals for where those data fields will show up, and is ridiculously easy to add to your theme. More to the point, if multiple end users are going to be adding content, WordPress with ACF is better ...


4

Development of Pods 2.0 definitely won't stop, the funding problems explained in that dev post were alluding to an upcoming announcement that we'll be pushing some of the enterprise and "extra" functionality of Pods 2.0 into a premium version targeted towards firms with more advanced and specific needs. On the data structure, Pods 2.0 handles post types, ...


2

This is a known limitation by the WordPress menu functions, you would need to rekey all of the menus ahead of time to be +100 or whatever you need, before Pods adds the menus to fix this. Previous versions of WordPress had a bigger problem with this, but they recently increased it in the past year or so. Also, in the Pods setup area, you can specify per ...


2

display does not echo, so you need to echo it. <?php echo $mypod->display( 'my_field' ); ?> More info and examples at http://staging.pods.io/docs/code/pods/display/ Also you will need to specify an ID of the item you want the field from in the pods() call, like: <?php $mypod = pods( 'my_pod', $id ); ?> Or use a find() call to get the ...


2

Pods allows you to create meta-based or table-based content types. Meta-based work as normal WP post types do. You can also extend WP objects like Comments, Users, Media, and Taxonomies to add custom fields to those. If you choose to use table-based Pods, it creates a table with the ID field and only the custom fields that you define yourself. There are ...


2

You're right, the attachments are stored within a separate table called wp_podsrel. Within the table you'll find the item_id (coupon id) and the related_item_id (attachment id). Hence you can get all the related_item_id's as a function of the item_id: SELECT related_item_id FROM wp_podsrel WHERE item_id = $coupon_id Your complete query/output may look ...


1

This is very easy with post types generated by Pods. If you create a Custom Post Type with Pods, you can add this to Parent Menu ID: "edit.php?post_type=top_level_post_type"


1

To add submenu items to a specific Pod's menu, try this: add_submenu_page( 'pods-manage-your_pod_name', 'My submenu item page title', 'My submenu item', 'manage_options', 'pods-manage-your_pod_name-my-submenu-item', 'your_callback_function' ); Do this during the admin_menu action in WordPress, or alternatively do it during the 'pods_admin_menu' action.


1

fetchRecord will load the next record and is only for use when you're using findRecords. When you give an ID to the Pod class, it will automatically fetchRecord for that ID, so calling it again will result in an empty return. Try $pod->data instead.


1

To customize which fields are shown in Pods UI, you can filter the default UI options through this filter / function combination. Overriding the $ui array with the options you wish to customize, this can be pretty quick and easy. function pods_ui_test ( $ui ) { // Test on UI Column $ui[ 'fields' ][ 'manage' ] = array( 'city' => 'City', ...



Only top voted, non community-wiki answers of a minimum length are eligible