Snippets Archive

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

Adding Dynamic Keywords on Meta Keyword Tag

I think it's nearly impossible to find a person now a days, who is involved with blogging or web design related works yet never heard of the term SEO (Search Engine Optimization) ...

Removing Comments Count Column for Pages

I am not quite sure since when people started using comment system for their WordPress pages?! You have got thousands of blog posts where your readers can make comments yet you still need page comments? Ok, no offense but I find it to be really boring ...

Excluding Specific Pages from Search Results

WordPress search function includes all of its pages and posts by default. However, if you think you need to exclude specific pages from your search result, you can do that very easily ...

Redirect WordPress Login Page to Different URL

Only couple of months back one of my site started getting whole lots of traffic. At some point I started realizing that people are trying to log into my site ...

Changing Footer Message from Admin Panel

If you log in to the WordPress admin panel, take a look at the bottom of the right hand side window. It should show "Thank you for creating with WordPress" message by default ...

How to Remove RSD Link from WordPress

One of the easiest way to remove certain features from WordPress is to create a function and use them up with WordPress Action Hook ...

Rewrite the CPT URL Structure with Post ID

There are so many ways to play around with the custom post type permalink structure in WordPress. However, in this post I will show you how to re-write the custom post type permalink structure with post id ahead of the post title ...

How to Remove WordPress Generator Meta Tag

If you take a look at the generated html source code of your WordPress site, chances are there that you would find default WordPress Generator meta tag right before "</head>" tag ...