Hello Razia, thank you so much.
I’m thinking to use another way, but I don’t know how to identify that it’s a download page (from wpdm).
The idea is simple. I want to see if it’s a download page, if so, I’ll change the breadcrumb. If not, it remains the same.
My single.php has it inside:
<div class="pagetitle">
<?php
$breadcrumbs=get_post_meta(get_the_ID(),'vibe_breadcrumbs',true);
if(!isset($breadcrumbs) || !$breadcrumbs || vibe_validate($breadcrumbs)){
vibe_breadcrumbs();
}
?>
<h1><?php the_title(); ?></h1>
<?php the_sub_title(); ?>
</div>
So, if I have a way to identify that this one is a page with downloads, from wpdm, may I change the code to fit my needs. If it is a different category, I have the way to use something like this:
if(!isset($breadcrumbs) || !$breadcrumbs || vibe_validate($breadcrumbs)) && ( !is_category( 'download' ) ){
vibe_breadcrumbs();
For example, if I want to change the thumbnail for a featured image, I may use something like this:
if( has_post_thumbnail() ) {
the_post_thumbnail();
// Default image for Technology category
} elseif ( is_category( 'technology' ) ) {
echo '<img src="' . get_bloginfo('template_directory') . '/images/default_technology_post_thumb.jpg" />';
// Default image for Gadgets category
} elseif ( is_category( 'gadgets' ) ) {
echo '<img src="' . get_bloginfo('template_directory') . '/images/default_gadgets_post_thumb.jpg" />';
// Default image for all others
} else {
echo '<img src="' . get_bloginfo('template_directory') . '/images/default_post_thumb.jpg" />';
}
In any case, how to identify that it’s a wpdm page to create a code to solve my problem?
Thank you so much.