Add get_comments_popup_link to WordPress

WordPress is a great platform for building your own blog, but, as with any open-source code base, it has a few annoyances that makes writing your own custom code harder than should be necessary. One of my biggest complaints has to be the inconsistency with functions that return strings versus output the string via echo. Most major functions in WordPress have echo and string variants. For instance, we can output the title of a WordPress post with: Alternatively, we can store the value of the post title as a string variable with: As I said, most major functions in WordPress follow this pattern— but an annoyingly small set only have their echo variant. This is the case for the function » read more «