Hi,
The following tickets was closed yestrday as solved https://kriesi.at/support/topic/category-boxes-with-images-bottom-of-post/
Only now, I noticed that something strange happens. The post features pictures we set to appear on archive page with this PHP code
/* Show featured picture in the archive page */
function custom_image_script(){
?>
<script>
(function($){
$(window).load(function(){
$( '#top.archive #wrap_all #main .post-entry' ).each(function() {
$( this ).find( '.avia-image-container' ).insertBefore( $(this).find('.entry-content'));
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_image_script');
are showing correctly. But only some of them, not all. See the examples in 2 different archive page:
– https://www.ninserviziogratuito.co.uk/categoria/lavoro >>>>>> https://www.screencast.com/t/SfA0JUf9N
– https://www.ninserviziogratuito.co.uk/categoria/soldi >>>>>> https://www.screencast.com/t/7gYkhhhoko
All pics are set in the same way, so I cannot understand why those in particular are not showing up.
Thanks,
Marco
Hey marcoabis81,
Sorry for the late reply, I took a look at your pages and I disabled the function above and found that not all post are the same, some don’t have the image div at the beginning of the posts, those that do, have the image inserted as shortcode.
Please ensure all posts have the same image shortcode.
Best regards,
Mike
Hi Mike,
thank you for your reply.
You were right about the shortcodes. I corrected it.
Thanks
Marco