Custom URLs between different post types, using “Pods”
Custom URLs between different post types, using “Pods”
Custom URLs between different post types, using “Pods”
It sounds like you want to create Custom Taxonomies with Pods. This is like creating a new option that you can later add to each item, like adding “Size” as an option to “Shirt”. Then Size would be clickable, and you can see the archives for all similar sizes. This is done with Custom Taxonomies. … Read more
Display all child posts in a custom post type, grouped by a custom taxonomy site
As with any custom tables in your database, you can override the SQL that WP_Query ends up using. For this use case, I’d suggest not using WP_Query’s arguments and building your own function to do this instead as it could simplify the logic and complexity. <?php add_filter( ‘posts_clauses’, ‘my_custom_wp_query_posts_clauses’, 10, 2 ); /** * Custom … Read more
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);
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
Custom Post Types and Posts are mixed
@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. } ?>
Ok I figured it out. My custom post type was called press_release not press-release, and instead of returning no results, wordpress was returning some arbitrary collection of results that were broken in weird ways.