Generate Random WordPress Post URL

Late last night I was working on one of my friends image based website and there he asked me to create next, previous and a random button under the single post (image). I searched around the same niche and found that a few of the site were using something like: www.site.com?random=1 or in general a Get variable to check for the user request.

I did not found the code though and had to came up with my own but I was able to understand the mistake others were doing as for a normal visitor ?r=1 ?random=1  may sound like a something weird, but www.site.com/random-post/  was a perfect URL with greater user understanding and friendliness. Here is the code:


To use this function you need to create an anchor link to:  www.your-site.com/random-post

If it works make sure you leave a comment and give us a bump either by sharing us or give us a +1 on G.

Disable Comments In WordPress

Today I was going through the logs of of this Blog and found people are not only coming here in search of removing author URL in comments but also we are getting traffic for disabling wordpress comments. I do know this is a pretty simple question with a quite simple answer yet for those who don’t know and what to configure their wordpress installation with no comments here is the solution.

Load WordPress Content Outside The Bolg

WordPress is a very powerful and flexible content management system. It can be as much complex and as much simple as you can imagine. It can be transformed into a fully functional eCommerce site with a cart and payment option on site and can be used as a personal blog after a few clicks of installation.

I recently worked with a client who asked me to turn his WordPress site into an affiliate website which will fetch feeds from different merchants and will display the products in her site. During the development I came across certain obstacles where using custom post types or page template wasn’t a good implementation of what was required. To overcome this problem I loaded WordPress API outside the blog to get the same database and look & feel but with my own programming logic to get the things done.

Enable WordPress Login via Email

How many of you actually forget the usernames of their wordpress logins? at least not me but I often forget my passwords, as I never have the same password for two different logins, i.e for facebook and twitter. Save password works for me, anyway, after writing my first wordpress plugin disable author url and comment links. I was playing with the wordpress hooks and filter and found a nice way to login into wordpress from the email address of the user.

This was at least handy for me since I have around 4blogs to manage and for security purposes I have different and pretty complex usernames, but fortunately all the my accounts are registered with my primary email id and now I can easily login with remembering only one email address. To avail the same service, please copy this code snippet to your themes file: function.php or if you are into chaging themes often you can copy this code into a file and upload via your FTP to the plugin folder and you’ll have the same advantages.

WP Disable Author Url and Comment Links

Disable Author Url and Comment Links : DAUnCL helps you keep your comments <strong>clean from spam links left by automated or manual comment spammers</strong> who are after your valuable traffic. Based on SimpleHTMLDom Library, this plugin removes any external link from your blog comments and comment authors name which are not explicitly allowed by the administrator.