CODE CODIFY.CLUB

DISPLAY ALL CATEGORY FROM CUSTOM POST TYPE

// START – DISPLAY ALL POST FROM SELECTED CATEGORY PRODUCT
$args_vr_tours = array(
‘post_type’ => ‘livingpictures’,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘posts_per_page’ => 4,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘noviplast-categories’,
‘field’ => ‘term_id’,
‘terms’ => 2,
)
)
);
$loop_vr_tours = new WP_Query($args_vr_tours);
?>
// END – DISPLAY ALL POST FROM SELECTED CATEGORY PRODUCT

// START – DISPLAY ALL POST TYPE CATEGORY
$categories = get_categories( array(
‘taxonomy’ => ‘noviplast-categories’,
‘orderby’ => ‘name’,
‘hide_empty’ => 0
));
// END – DISPLAY ALL POST TYPE CATEGORY

V!ral

Developer, Technology aficionado, Beer Lover and founder of codify.club Network. Who shares a keen interest about website development, health issues, cancer awareness and other fun stuff.

Add comment

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most popular

Most discussed