Possible to edit custom date field and display?

Editing the theme is a good way to get this done, if it’s a theme with updates from someone else I would make a child theme to prevent your changes being overwritten: https://developer.wordpress.org/themes/advanced-topics/child-themes/ Another option is to make a plugin that utilizes a shortcode that allows any WordPress editor to just plug that shortcode into … Read more

Delete empty title_tags, find a h1 heading and echo it

You can’t do if(the_title()) cuz the_title() this code’ll echo a value… Use get_the_title() for a return of the value. Remove this code too: $newtitle = h1 -> outercontent; Do this for check if title is empty: if(empty(get_the_title())){ // Is empty } else { // is not empty } Or you can do only this: if(!empty(get_the_title())){ … Read more

Invalid Argument foreach

simple_fields_get_post_group_values might be returning null or false. Try adding: $leftsidebar = simple_fields_get_post_group_values($post->ID, “Left Sidebar”, false, 2); echo “<!–“.print_r($leftsidebar).”–>”; And check the source of the page to see what’s returning.