Posts Tagged "Wordpress"
How to Avoid Duplicate Posts in Multiple Loops.
In the recent days almost every wordpress blog is using ‘Magazine’ type themes. But one problem associated with Magazine themes is that they use more than one loop on their blog home page for a solution to avoiding duplicate posts on the second loop. Well this lttle php hack can solve this problem for you. 1. Let’s start by creating a simple PHP array, and put all post IDs from the...
Read MoreAutomatically add a custom field when a post is published on WordPress.
Most of the WordPress users now use highly code themes that add to the functions and looks of their blogs. And for many such functions you need a add a custom field while publishing any post. Obviously many of us dont like to do this extra thing while blogging. So here’s a solution to how to do it automatically. Just goto your Dashboard > Appearance > Editor and look for...
Read MoreAdd Author’s Gravatars to Posts in WordPress
Adding Gravatar to your blog, makes your blog’s comments look more attractive. That’s why it have been incorporated in the WordPress core. Now comes the idea of adding your gravatar to your post on WordPress. This can be pretty useful in blogs with multiple authors, so that readers can quickly identify, who wrote this post. And adding this feature is real easy. Just add this code in...
Read MoreAdd Latest Registered Users list in your sidebar.
If you are getting a lot of user registrations and want to flaunt it, then what else can be the best than show your “Latest User Registeres” list in your sidebar. What you have to do is just paste the following code to your sidebar - <h2>Latest registered users</h2> <ul> <?php $usernames = $wpdb->get_results(“SELECT user_nicename, user_url FROM...
Read MoreWhat’s new in WordPress 2.8?
The WordPress Team is continuously striving hard to WordPress as the best Content Management System and enhance the User experience with WordPress. Now, WordPress has released its latest version – 2.8 It has added a bunch of features to this latest 2.8 version of WordPress. Some of the Key features include : Integration of Code Editor in Themes Editor – Now you can edit your...
Read More