Make administrator role view only their own pod entries
Create a new role. And provision that role with all of the usual admin capabilities, except the ability to view/edit other’s posts/pages/comments(or whatever they are in your site)
Create a new role. And provision that role with all of the usual admin capabilities, except the ability to view/edit other’s posts/pages/comments(or whatever they are in your site)
You can add the capability of all adminstrators to use Pods in putting this code in a plugin : add_filter(“pods_admin_capabilities”, function ($pods_admin_capabilities, $cap) { $pods_admin_capabilities[] = “administrator”; return $pods_admin_capabilities; }, 10, 2);
Solved! I’ve created this script: <?php global $wpdb; $postwp = $wpdb->get_results ( “SELECT ID,post_author,post_title FROM wp_posts WHERE post_status=”publish” and post_type=”post”” ); $users = $wpdb->get_results ( “SELECT post_id,meta_value FROM wp_postmeta where meta_key = ‘id_utente_user'” ); foreach($postwp as $key1=>$value1) { foreach($users as $key2=>$value2) { if($value1->post_author==$value2->meta_value) { add_post_meta( $value1->ID, ‘autore’, $value2->post_id ); } } } ?> I hope … Read more
The short answer here is you can’t check whether the upload is coming from a Pods Advanced Content Type, especially since the media that gets uploaded has no post_id associated to it (it’s not a post at that point). The longer answer is that you can still customize this if your file upload field is … Read more
If I understood your question correctly, you want to have the flag span added automatically your post when it is associated with the country custom taxonomy, right? If that is the case, then you could add the following helper functions to your functions.php and then use them in your post template. The example assumes that … Read more
How do I disable Pods/Elementor while using Ninja Forms?
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.
Advanced Content Types and Pod Pages are separate from WordPress post types. They do not currently show up in the navigation menu management area. This is a feature we are working on including in the future. https://github.com/pods-framework/pods/issues/1053
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 something like this: … Read more