Problem Terms with Theme Verse

Viewing 3 posts - 1 through 3 (of 3 total)
#34757

Hello,

I have a problem with the theme Verse.
Let me explain :
When I’m on the homepage, it lists me 3 downloads categories.
But when I click “Browse All”, it displays nothing me.

I checked and there is a problem in the taxonomy-wpdmcategory file.
have_post return false …. And I do not understand why.

By cons, if I use a WP_Query before and I assigns it to have_post. There he found me well my category list.

Can you help me?

#34763

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.

#35093

Shahjada
Keymaster

You won’t have to do that, we are releasing new update the for theme within this week.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Problem Terms with Theme Verse’ is closed to new replies.