Skip to content
Advertisement

Tag: bootstrap-5

PHP outputs images before divs – wordpress bootstrap carousel multiple items

I’m trying to create a wordpress slider with bootstrap carousel displaying multiple post on one slide. I have a problem with outputting the images in the <div class=”col-xxl-4″>. This is my code: and this the output I get: how can I fix this to get: <div class=”col-xxl-4″><img src=”…”></div> Answer Solution: Replace the_post_thumbnail by get_the_post_thumbnail. When using call the_post_thumbnail, it will

Advertisement