Home » WordPress » Page 2


WordPress get_post_meta Example

Let’s take it as if you’re writing a post in your WordPress website. Being the nice guy he is, WordPress would actually facilitate this for you and why not add some little perks such as you including your favorite song for the moment, or even your mood into your post. This is done through metadata. How exactly? Look below!   ...

Read More »

WordPress functions.php Tutorial

When designing WordPress Themes, you might have wanted to customize a theme by adding your own set of functions to make it come closer to your wants and needs. You are not the only one, and the funny thing is, some of the functions you want to add, are also the ones I (or someone else out there in the ...

Read More »

WordPress get_permalink Example

While working on your WordPress theme or plugin, you might need to get the current posts permalink. Below, you will learn how to do that, and why not also getting another post’s permalink while we’re at it? Let’s find out how!           Definition and Syntax The get_permalink() function makes it possible for you to retrieve the ...

Read More »

WordPress get_option Example

WordPress has simplified a lot the way we approach functionality, as it has defined many PHP functions, some of them (known as Template Tags) intended especially for WordPress Themes. Among many others which you can find here, are the Options functions. In case you want to get values for a specific option of your site from the database, you can ...

Read More »

Templating a WordPress theme with Twig

Well, that wasn’t as painful as I thought it would be. Some googling and a couple of experiments went a long way, and now I have a partial, unstyled, Twig-based theme happily running on WordPress. Twig is a templating engine for php. It has more than enough features to get me going, setting it up is as easy as falling ...

Read More »

How to customize WordPress mail sending method

Last week, I suddenly stopped receiving email notifications on this blog hosted on openshift. I came to know after some reading that commonly used cloud hosts such as openshift, aws, etc. are usually blacklisted by most email servers, hence its not a good idea to use them to send mails. In any case, why should I depend on my hosting ...

Read More »