Pods CMS – Get ACT’s attached image records by auto-id?

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

Using PODS data with save_post

Yes, whenever a post is saved you should see all of the input items in $_POST … if you’re not using something like xdebug to debug with, you could do something like: echo “<pre>”; var_dump( $_POST ); echo “</pre>”; To test and see what is all included in $_POST … note this is just for … Read more

How do I create an overview page with custom calculations from a post-type?

It seems you are asking for a complete custom funcionality, To add menu, you can use this. function wpdocs_register_my_custom_menu_page() { add_menu_page( __( ‘Custom Menu Title’, ‘textdomain’ ), ‘custom menu’, ‘manage_options’, ‘myplugin/myplugin-admin.php’, ‘custom_callback_function’, plugins_url( ‘myplugin/images/icon.png’ ), 6 ); } add_action( ‘admin_menu’, ‘wpdocs_register_my_custom_menu_page’ ); function custom_callback_function(){ echo ‘Here is my page contents’; } https://developer.wordpress.org/reference/functions/add_menu_page/ You can use … Read more

How to parse multiple links from one variable?

I would look into this question here https://stackoverflow.com/questions/36564293/extract-urls-from-a-string-using-php You could use the above link detection to do something like this in your shortcode: <?php function pods_current_user($atts) { extract(shortcode_atts(array( ‘currUser’ => get_current_user_id(), ), $atts)); extract(shortcode_atts(array( ‘field’ => “display_name”, ), $atts)); $message = do_shortcode(‘[pods name=”user” where=”ID = ‘.$currUser.'”] {@’.$field.’}[/pods]’); preg_match_all(‘#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#’, $message, $match); // Do something with your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)