Some code in shortcode function being ignored

This line is your issue: $log_string += “Dealing with ” . count($atts) . ” tab(s)\n”; It should be: $log_string .= “Dealing with ” . count($atts) . ” tab(s)\n”; It looks like you confused the javascript and PHP concatenation operator. Don’t worry, it’s something I’ve done numerous times! Ugh! Edit: Actually, looks like you’ve made this … Read more

get_post_title is not working on homepage

You’re using a query inside a query at this point. Because of that you need to define global $post at the top of your functions file so it has something to assign in the_post(). Now that you have a $post object you can replace all your test code with $post->attribute: //Recent post shortcode single function … Read more