save_post hook – headers already sent?

Saving post doesn’t just happens. Either you are submitting a form or ajax request, which spins up new copy of WP core, which does the saving. Typically that process isn’t meant to produce output and isn’t handling it accordingly. Depending on what you want to accomplish you will have to either use pure JavaScript for … Read more

Changing the color of post title [closed]

Without all the info of what is actually happening I’m assuming that the title is output with the Song Artist and the Song Name together. But like you said with a dash in the middle. With that assumption, then you can accomplish this with a custom function that filters the_title before it’s output. Try putting … Read more

Can’t wrap my head around this function – any help would be appreciated

Your problem is that you return nothing if some of the options doesn’t meet your criteria. For example, you are doing this: if ( $header_container == get_theme_mod( ‘header_container_background_color’, ‘#e6e6e6’ ) ) return; So, if $header_container is equal to #e6e6e6, the function return and stop further execution. You have to change that logic. For example (just … Read more