Snippets Archive

Codes that are meant to be useful for others. Commercial use of my code strictly prohibited.

Display Related Posts Based on Post Author

Just only couple of days back I wrote a post on How to Display Random Posts in WordPress and last year in December I wrote another post with very similar concept, which was How to Show Related Posts Based on Multiple Categories in WordPress ...

Why You Should Use CSS Reset

CSS Reset is a block of CSS code that sets the baseline for any HTML document so that your design remains consistent regardless of your Browser ...

How to Add Google Map on a Website

As far as I can remember, I wrote and made a YouTube video tutorial on this way back. Seems like, it's time to make a new video as many users are requesting for an updated version of this video ...

Check the Existence of a Function

Over the last couple of months I have written numerous tutorial posts for WordPress platform. In many instances, I have shown how to write certain function and call them whenever or wherever you need them ...

Displaying Child Category & Taxonomy Term

In general, if you assign a parent and a child category to a post. Your regular the_category function should display both the child and parent category ...

Displaying Related Posts Based on Categories

I spent last night playing around with WP_Query. In the past, I wrote a post explaining how to display random posts both for the Posts and for Custom Post Type ...

Flushing ReWrite Rules in WordPress

Every time, you write or rewrite a rule or a permalink structure in WordPress, it is extremely important that WordPress understands and saves the changes that you made on your site ...

Facebook Post Share Count in Plain Text

Back in June 2014, I wrote a post a where I have shown how to grab the Facebook page like count of any given Facebook page and display them in Plain text ...

How to Install WordPress on a Computer

I already wrote number of articles on this site about WordPress. Today in this post, I will show you how to install WordPress on your computer ...