List Terms by category
Your query explicitly excludes the current post with this: ‘post__not_in’ => array($post->ID), remove that and it will return the current post within the results.
Your query explicitly excludes the current post with this: ‘post__not_in’ => array($post->ID), remove that and it will return the current post within the results.
Prevent repetitive terms in get_the_term_list
Try to set 3-rd parametr for wp_list_pluck function, as i see if it’s not set then there’s happaning an unnessesery, for you, loop. Try to set it to true or some, not existing in Object, key. Hope it helps.
The way you create a template for a specific term is by a file, called taxonomy-$taxonomyname-$slug_of_the_term.php In your case it would look like this: taxonomy-schools-highschool.php Use this image as a guide for any other specific case that you might have: http://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg
Fetch posts list from fist CPT taxonomy term and list under 2. CPT
It is too specific of a condition for there to be a native way. On other hand this is hardly complicated as simply sorting an array in PHP. You can use usort() with a small custom callback, containing your comparison logic.
For your first question: — Where do I have to put the »HTML for the term order metabox«? Take a look at the add_meta_box codex page, the example there shows you how to put a metabox on your posts admin pages. Regarding your second question: — Does the »JavaScript to make the above list sortable … Read more
You can use the relations field from ACF. Then you could select your own related posts for each blog item.
The way to go would be to create an archive template for your taxonomy. Then you can catch the term requested with a function like get_queried_object(). So now you can do a custom WP_Query querying for both your term and your meta ‘featured’ Hope that makes sense http://codex.wordpress.org/Class_Reference/WP_Query http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display
You can get the Packages of the current Proposal using wp_get_object_terms() and then pass some/all of those into a WP_Query. $terms = wp_get_object_terms( $post_id, ‘packages’, array( ‘fields’ => ‘ids’ ) ); $args = array( ‘post_type’ => ‘proposals’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘packages’, ‘terms’ => $terms ) ), ); $related = new WP_Query( $args … Read more