Archive for the ‘WordPress Tutorials’ Category

WordPress Plugin For E-Commerce: GetShopped

GetShopped is a free WordPress plugin for adding e-commerce capabilities into WordPress-powered websites.

It is a very easy-to-setup plugin which can work with any standards compliant WordPress theme (and WordPress MU).

GetShopped WordPress Plugin

The plugin offers a flexible pricing structure for products with features like:

  • flexible coupon/discount pricing…

WordPress Tip: Remove nofollow Attributes from Post Content

If you have posts that include the nofollow attribute on links, you may at some point decide to remove them. By default, WordPress doesn’t insert nofollow attributes in post content, but there are a variety of plugins that will insert nofollow into all…

How to remove “private” and “protected” from the post title

The only thing you have to do is to paste the following piece of code in your functions.php file. Once you’ll save the file, the hack will be applied to your your posts.

function the_title_trim($title) {
	$title = attribute_escape($title);
	$findthese = array(…

Stop Spammers and Other Scumbags with a Custom Blacklist

I usually reserve most of my blacklisting content for Perishable Press, but after posting about using WordPress’ built-in tools to stop comment spam, several DiW readers have asked about a good custom blacklist that may be used for the “Comment Moderation” and/or “Comment…

How to display custom post types on your WordPress blog homepage

The following code have to be pasted in your functions.php file. Once the file will be saved, it will work.
As you can see in the code, the post, page, album, movie, quote, and attachment types will be displayed. Modify that line to…

Which Template File does WordPress Use to Render Different Pages?

This page in the codex has a particularly interesting infographic that shows a flowchart of how WordPress chooses which template file it is going to use to render the page. For example, did you know if you have a published page…

Get most commented posts with thumbnails

Nothing hard with this recipe : Simply paste this code anywhere in your theme files, where you’d like the most commented posts to be displayed. Don’t forget to replace the custom field name by yours on line 5:

<?php $popular =…

WordPress How to : Style comments of every roles

This post was generated by an RSS Feed from WP Recipes

To do so, simply open your comments.php file and replace your comments loop by this one :

<ol id="commentlist">
<?php foreach ($comments as $comment) : ?>
	<?php // The extra stuff to…

Why All-In-One SEO Deactivates

In the past I’ve been pretty pissy about the All-In-One SEO plugin from Michael Torbert automatically deactivating itself after updates. My reasoning:

  • If you update and forget to re-activate (somewhat hard to do since it reminds the shit out of you on every…

Display most recent comments with Gravatar

In order to display the 5 most recent comments with their gravatars, paste this code anywhere on your theme files. To get more or less than 5 comments, change the number 5 on line 2.

<?php
$query = "SELECT * from $wpdb->…