Answer the question
In order to leave comments, you need to log in
Why are post images not showing up in Wordpress?
Post images are no longer displayed. Custom fields don't work. Previously, it was enough to write in the functions file, for example, the following code:
function product(){
?>
<div class="product">
<a href="<?php the_permalink();?>" class="product_top">
<div class="product_title"><?php the_title(); ?></div>
<div class="product_image" style='background: url(<?php echo get_field('фото')['sizes']['medium'];?>) no-repeat center center/cover;'></div>
</a>
</div>
Answer the question
In order to leave comments, you need to log in
There can be many hypotheses, for example:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question