Always be while creating nice looking topic, especially when you create function. I created this function in order to save myself from writing boring and tedious code. Both codes doing the same thing and in order to save those few keystrokes, it was hard to make out where that function is fetching issues from.. So, this is the function that we will go for. function has social icon { $icons = get post meta, 'post social icons, real ) return real }. Another thing comes to my mind, what if in future, I want to use this function outside the loop. And Now, you have written function which is something in the name of anticipating the future. If your main aim is to Free WordPress Themes or selling Premium WordPress Themes, keep your up to date with best practices and recheck the time to time to make sure you doing it the best way.. 5. Another example, when designing post to post navigation, I always want to go for get next post function. <. php $next post = get next post if ). >
<. php voice esc attr . >< a> <. php endif. >. When all this is mixed with before hand optimisation, anticipating future, ignoring wordpress codes and amend the code, that's when. Most of the errors in WordPress Themes came due to my desire to save time in the future or to improve the code to make them nicer. Read more