erioch
Forum Replies Created
-
Thanks it works…
Cheers
Thanks so much for the advice, just one more question if you do not mind, where or which file should I add the snippet?
Kind regards,
Erick
Thanks for your quick response. And do you have where we can see a demo of how it does filter by date range and category, etc? And is it exportable?
Hi zookatron,
I managed to get a work around, thanks for the support though…
I decided to use the conventional post_tag option instead of the mbt_tag and it seems to work…
The idea was to use the pool of tags added by the conventional wordpress tags system instead of adding tags differently between mbt_book and wp-post…
It is now working well as expected.
Another NOTE: I managed to create featured image support for anyone who wants to pull thumbnails as well by adding featured image in addition to the book image. I realized that the normal wordpress thumbnail functionality does not recognize book image, so by adding ‘support’ => array (‘title’, ‘thumbnail’); creates the add featured image meta field for that purpose.
Kind regards,
Erick
Hi,
Thank you for the reply.
This is the code I was trying to use…
<?php // Generate an array of taxonomy IDs $tax_IDs = array(); foreach ($tags as $tag) { $tax_IDs[] = $tag->ID; } // Use your array of taxonomy IDs in the query args $args_2 = array( 'post_type' => 'mbt_book', 'post__not_in' => array($post->ID), 'showposts'=> 3, 'tax_query' => array( array( 'taxonomy' => 'mbt_tag', 'field' => 'id', 'terms' => $tax_IDs ) ) ); // Run your query $my_query_2 = new WP_Query($args_2);
I hope this will give an indication…
Kind regards