it isn’t part of a function. I’ve figured out part of the issue. For some reason it is displaying the content for every post that exists. I added a 4th and 5th post and it displayed the content 4 and 5 times respectively.
It worked for the footer issue, but not for the header. Is there a way to query without a while loop?
//This post id must be accurate for the post. There may be a conflict with this when importing a database
query_posts('post_id=6');
while ( have_posts() ) : the_post(); ?>
/*These styles are dynamically generated from the header post using ACF color picker fields */
.CTAColorFont {
color:<?php the_field('cta_color'); ?>;
}
.CTAColorBackground {
background-color:<?php the_field('cta_color'); ?>;
}
.BaseColorFont {
color:<?php the_field('base_color'); ?>;
}
.BaseColorBackground {
background-color:<?php the_field('base_color'); ?> !important;
}
.LightAccentColorFont {
color:<?php the_field('light_accent_color'); ?>;
}
.LightAccentColorBackground {
background-color:<?php the_field('light_accent_color'); ?> !important;
}
.DarkAccentColorFont {
color:<?php the_field('dark_accent_color'); ?>;
}
.DarkAccentColorBackground {
background-color:<?php the_field('dark_accent_color'); ?>;
}
.FooterDarkColorFont {
color:<?php the_field('footer_dark_color'); ?>;
}
.FooterDarkColorBackground {
background-color:<?php the_field('footer_dark_color'); ?>;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {