Fixed! I totally forgot about it. Thanks.
This is the template part:
<?php
$sponsorsList = new WP_Query([
'posts_per_page' => -1,
'order' => 'ASC',
'post_type' => 'sponsor'
]);
while($sponsorsList->have_posts()) {
$sponsorsList->the_post(); ?>
<span class="md:block xs:hidden">
<?php the_content(); ?>
</span>
<?php } ?>
The classes are to show on large devices and hide on small devices. I thought at first that maybe a CSS class was causing the problem but this is not the case.
Again, only the_fields() placed after the get_template_part() section are affected by it. I have no idea where to go from here.
Ok let’s try again. I want to create a field to add an image to my footer area; to do this, you need to select what type of field it is. footer.php is not a page and is not a post. You need to decide where you want this custom field to go. If I select let’s say Post Type, is equal to, I have 2 options Post or Page, footer.php is neither of them. header.php and footer.php are part of the theme but are not pages.
I just want anyone to be able to change the footer background image without me coding it.