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

How to make WordPress customizable for clients

WordPress define the Customizer for doing this job. It works in frontend, on default, and you can enhance with your requirements. Also give it easier possibility to live preview of the options. You find a lot of how to here on WPSE and also in the wild of the www.

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