@optimizingmatters Thank you for your free plugin.
I’m having trouble getting lazyloading to work on taxonomy archive pages.
Expected behavior:
– the .lazyloaded class is added to ‘s on taxonomy archive pages when scrolling the page
Actual behavior:
– only the .lazyload class is added to ‘s on taxonomy archive page even after scrolling the entire page
– the images are not displayed even though the data-src attribute is populated with the correct image src
Testing:
– unchecking the ‘Lazy load images?’ setting causes the images to display on the taxonomy archives
– there are no errors in the console
Taxonomy archives tested:
– taxonomy.php
– taxonomy-{tax}.php
– taxonomy-{tax}-{term}.php
$cladding_type = get_post_meta( get_the_ID(), ‘cladding_type’ , true);
echo $cladding_type
and it shows the value
What can i add to the archive so it shows the label too?
Thank you!
]]><?php
echo '<nav><div class="nav nav-tabs" id="nav-tab" role="tablist">';
$args = array(
'hide_empty'=> 1,
'orderby' => 'name',
'taxonomy' => 'productos_tipos',
'order' => 'ASC'
);
$categories = get_categories($args);
foreach($categories as $category) {
echo '<a href="#nav-'.$category->slug.'" class="h4 nav-item nav-link' .' " id="nav-' . $category->slug.'-tab" data-toggle="tab" role="tab" aria-controls="nav-' . $category->slug.'">'.$category->name.'</a>';
}
echo '</div></nav>';
echo '<div id="nav-tabContent" class="tab-content">';
foreach($categories as $category) {
echo '<div class="tab-pane fade show active" id="nav-'. $category->slug.'" role="tabpanel" aria-labelledby="nav-' . $category->slug.'-tab">';
//echo '<div class="tab-pane" id="' . $category->slug. '">';
//<?php echo $query->current_post >= 1 ? 'false' : 'true';
$the_query = new WP_Query(
array(
'post_type' => 'productos',
/*'the_query' => array(
array(
'taxonomy' => 'productos_tipos',
'terms' => array( $category->slug ),
'field' => 'slug'
)
), */
'category_name' => $category->slug
));
echo '<div class="row">';
while ( $the_query->have_posts() ) :
$the_query->the_post();
echo '<div class="col-xl-4 col-lg-6 mb-3">
<div class="row">
<div class="col-xl-4 col-lg-6 width-img-producto col-12 custom-center-image-xs">
<img class="img-fluid size-img-producto" src="'; echo bloginfo("template_url") . '/img/saco.jpg">
</div>
<div class="col-xl-8 with-descripcion-producto custom-xs-text-center">
<h4>'; echo the_title();
echo '</h4>
<p>'; echo the_content();
echo '</p>
</div>
</div>
</div>';
endwhile;
echo '</div>';
}
echo '</div></div>';
?>
]]>I’m using category / taxonomy archive pages as key landing pages on my site, but whatever I do I cannot make them appear in search bar. Is it possible?
]]>For example, the following URIs show the same result:
https://example.com/posttype_A/tax_X/term_Y
https://example.com/posttype_B/tax_X/term_Y
The result includes both posttype_A and posttype_B entries.
]]>I have a taxonomy-mytax.php and the post are not ordering on this.
When I do a wp-query() to list them in the sidebar, all well and good, the order i make and see in the admin is reflected there so I know it’s working.
Unfortunately it’s not working in the taxonomy archive
Any thoughts?
https://www.ads-software.com/plugins/intuitive-custom-post-order/
]]>Yet when BTF is installed and activated, whenever I try to view a post in the collections taxonomy, it will only use the archive.php template. When I deactivate the plugin, it returns to using the taxonomy-collections.php template.
How can I get BTF to respect my permalinks and template hierarchy?
https://www.ads-software.com/plugins/beautiful-taxonomy-filters/
]]>glad to see you. Thank you
https://www.ads-software.com/plugins/custom-post-type-ui/
]]>