Is there a way to nest taxonomies or custom fields deeper than one level below the post type?

WordPress content is implemented in two foundational structures: Posts represent distinct “instances” of content, and Taxonomy Terms aggregate and organize Posts according to their shared qualities. Meanwhile “custom fields” – or more specifically Meta-data/”Meta” – can be used to add arbitrary data to both Posts and Terms (among other things). Analogous to classical OOP, a … Read more

Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?

Never mind! I managed to come up with a solution. function insert_location(){ ob_start(); ?> <select name=”location” id=”location” class=”postform”> <?php $tax_terms = get_terms(‘location’, array(‘hide_empty’ => ‘0’)); foreach ( $tax_terms as $tax_term ): echo ‘<option value=”-1″>Select a Location</option><option class=”level-0″ value=”‘.get_term_link($tax_term).'”>’.$tax_term->name.'</option>’; endforeach; ?> </select> <script type=”text/javascript”> /* <![CDATA[ */ (function() { var dropdown = document.getElementById( “location” ); function … Read more

Auto Generate Post Title from 2 Custom Fields

You can use the wordpress save_post action to update the title using the custom fields as you like. Here is the simple example I have used myself – add_action( ‘save_post’, ‘custom_post_type_title’ ); function custom_post_type_title ( $post_id ) { global $wpdb; if ( get_post_type( $post_id ) == ‘job-updates’) { $terms = get_field(‘job’, $post_id); // taxonomy fields … Read more