Can’t create new Pods pages

I found the problem. There was a line of code that was deleting all posts as soon they were created. It may seems slly but it was wanted, I’m building a really custom app based on wordpress… Simply I forgot that this would cancel many other things that pods saves as post, like pods pages … Read more

Conditional Logic Based on Custom Taxonomy

@Milo was absolutely correct…the issue was that I wasn’t getting a string to compare. The solution actually came from here. What this ultimately looked like in my scenario: <?php if(has_term(‘dining-1’, ‘page_category’, $post->ID)){ get_template_part(‘sidebar’, ‘dining-one’); } elseif(has_term(‘dining-2’, ‘page_category’, $post->ID)){ //etc. } ?>

Pods: Authors to Custom Field

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

File Upload Management

You can start yout work with upload_dir filtering. However, I wouldn’t recommend it (change this functionality). You will need to track few types of uploads and then track whoever is the parent of the upload. It’s more complicated, then joyful task.

How to change pods ACT upload dir

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

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