Hi,
I think I found a solution. Can you tell me if it’s good from you. I am a developer but as far, I do not know too WordPress framework.
So I changed the taxonomy wpdmcategory.php-file, by:
$count = 0;
$wpmpcat = get_term(get_queried_object_id(), ‘wpdmcategory’);
$q = new WP_Query(array(
‘post_type’ ► ‘wpdmpro’,
‘tax_query’ ► array(
array(
‘taxonomy’ ► ‘wpdmcategory’,
‘terms’ ► $wpmpcat->term_id,
‘field’ ► ‘term_id’,
‘include_children’ ► true
)
),
‘orderby’ ► ‘publish_date’,
‘order’ ► ‘DESC’)
);
$z = 0;
while ($q->have_posts()) {
$q->the_post();
/*Desactivate Source Code
while(have_posts()): the_post();*/
?>
<div class=”col-md-3 recent_item”>
<div class=”product-block”>
“><?php wpeden_post_thumb(array(300,300), true, array(‘class’►’no-radius thumbnail’)); ?>
<div class=”product-info”>
<h3>“><?php the_title(); ?></h3>
<?php if(function_exists(‘wpdmpp_product_price’)){ ?>
<h4 class=”price”><?php echo wpdmpp_product_price(get_the_ID())>0?wpdmpp_currency_sign().wpdmpp_product_price(get_the_ID()):’Free’; ?></h4>
<?php echo wpdmpp_product_price(get_the_ID())>0?str_replace(“btn-info”,”btn-flat flat-info no-radius”,wpdmpp_waytocart($post)):”Download“; ?>
<?php } else { ?>
“><?php _e(‘read more’,’thenext’); ?> <i class=”fa fa-angle-right”></i>
<?php } ?>
</div>
</div>
</div>
<?php
if(++$count%4==0) echo “<div class=’clear’></div>”;
}
//desactivate source code endwhile; ?>
</div>
Thank you in advance for your help.