is action hook not working on quick edit?

According to WPSeek’s page on the create_{$taxonomy} action hook, and also the new-to-me WordPress Developers’ docs on the same hook, there are two required parameters: Parameters $term_id (int) (Required) Term ID. $tt_id (int) (Required) Term taxonomy ID. So your function is missing the $tt_id parameter.

How we retrieve the ‘tags’ and ‘attachment’ of the custom post which is created by wp_insert_post();

You can use: $post_id = wp_insert_post($args); to get the ID of the inserted post. You can try this: $terms = wp_get_object_terms($post_id, ‘thread_tag’); to get the terms from your post with $post_id. You can check out the Codex: http://codex.wordpress.org/Function_Reference/wp_get_object_terms You can then use get_children() $args = array( ‘post_mime_type’ => ‘image’, ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’ … Read more

Attempting to filter posts using get_terms

Have you tried out isotope? I am working on a project that needs a similar function. So far it’s the closest I’ve found that will sort/filter posts. The link – http://isotope.metafizzy.co/ Here’s some questions I had about implementing it with wordpress, and was able to do so to certain extent. It can help get you … Read more

Get object terms with no children?

I have written this function some time ago, it may be a bit sloppy but it does it’s job: function get_low_level_term( $taxonomy ) { $term = null; if( is_single() ) { global $post; $terms = get_the_terms( $post->ID, $taxonomy ); if( count( $terms ) == 1 ) { foreach( $terms as $t ) { $term = … Read more

Get Parent Custom Taxonomy Term and Color Div background

You’ll have to adjust the markup to suit your specific needs, but the easiest solution would use a post_class filter on the post_class() template tag, to output appropriate classes. For example, in your template, you need to call post_class(), such as: <div <?php post_class(); ?>> <div class=”car_type”>Ford</div> (background green) Post Title<br> Post Content<br> </div> Then, … Read more