Retrieve Custom Taxonomies according to posts selected

The loop for $listings should include a call to $listings->the_post() so that the global post object is assigned to the current listing in the loop: while ( $listings->have_posts() ) { /*** Add the following line: ***/ $listings->the_post(); $post_get = get_the_ID(); $term_get = get_the_terms($post_get, ‘Car_Series’); $term_array = $term_get; print_r($term_get); array_push( $term_array, $term_get); } Without this, functions … Read more

How to add custom label or texts in featured image

You can do this by calling a javascript file for admin. Create a javascript file in js folder in you current theme called admin.js. inside the file add this code: jQuery(document).ready(function($) { $(‘#postimagediv .inside’).prepend(‘<p>Recommended image size 300*300px</p>’); }); Now in functions.php in your current theme folder add this code to call the javascript file exclusive … Read more