Dev Corner

Software Developer’s Notepad

Archive for the ‘WordPress Development’ Category

You need to add icons to your search results, archives or simply to enable the Facebook Open Graph protocol on your blog site. This task can be accomplished by extracting the URL of the first image, used in post. If you follow certain conventions, this can always be the post or page thumbnail. I have seen many solutions to this relatively simple problem. Unfortunately most of them are incorrect. Here is the right PHP code to get the first image URL from the post content. Read the rest of this entry »

Shortcodes are very effective way to include dynamic content into your posting. This tutorial will guide you through the process of creating your own shortcode. Just in few easy steps. Read the rest of this entry »

This tutorial shows how to retrieve tags associated with WordPress post. You can retrieve tags for the current post or any other post. Read the rest of this entry »