How to replace Read More with an image

Sometimes it’s preferable to have a button instead of text to allow the reader to jump to the rest of a post. Following is the code to replace the text with an image:

 <?php the_content('<img src=
"' . get_bloginfo('template_directory'). '/images/readmore.png"
alt="read more" title="Read more..." />'); ?>

Obviously, replace /images/readmore.png with your image director and file name.

(This is slightly different from the instructions in the WordPress Codex, which did not work for me.)

More »

Enable the WordPress 3.0 Multi-Site Option

There are so many great things about WordPress 3.0 (like the awesome Menus feature for example), and one of the best is that they’ve combined WP and WPMU at long last. You have to turn on the multi-site option by adding a bit of code to the wp-config.php file to enable it:

define('WP_ALLOW_MULTISITE', true);

After adding this, you should see Network under the Tools options in the Admin panel and you can take it from there!

More »

Getting around the upload limit in the php.ini

Ever tried to upload images in WordPress and get the following error message “Your php.ini upload_max_filesize is 2m”? This article provides a solution which is as simple as pasting a bit of code into a file and uploading it to your WordPress installation.

More »

How to use WordPress 3.0 Menus feature

Justin Tadlock always does a great job of covering new WordPress features, and this article is no exception. WordPress 3.0 has a new Menus feature that will make navigation design much easier for the average user as well as for theme designers.

More »

Add an event calendar to WordPress with Google calendar

There are not very many good plugin options for WordPress right now if you want an event calendar. The Calendar plugin is the only one I’ve found that functions well as a full featured calendar and it has some great features, like color-coded categories for events and a widget. However, you can also just integrate a Google calendar into a WordPress site. The linked article is a nice, quick tutorial explaining how to make this work.

More »

How to Optimize Your WordPress Site for Search Engines

WordPress is already set up to be well optimized for SEO, but there are some additional techniques to employ and plugins available that can greatly improve search engine rankings. First, install either the Platinum SEO Pack or the All In One SEO Pack plugin. Then check out this comprehensive guide to WordPress SEO.

More »

How to control which widgets appear on which pages

If you get into managing a large amount of content or have a very custom site, and you’re using widgets, odds are that you’ll have a need to be able to selectively display certain widgets on certain pages. There is an awesome plugin called Widget Logic that addresses this need perfectly. It adds a field at the bottom of each widget box where you can drop in a WordPress Conditional Tag (or other PHP) such as is_home() to show a widget only on the main page for example.

More »

Use a custom field outside the loop

Custom fields are so flexible and being able to display them outside the loop might certainly come in handy.

More »

Social media links for WordPress the right way

Inserting a simple link to Twitter is one thing, but including SEO friendly, valid links using WordPress template tags to make it extra convenient for your users to add posts to social media sites requires a little more thought. Fortunately, the linked article does the thinking for us, by supplying code for the most popular social media sites.

More »

Use a shortcode in WordPress template files

Shortcodes are designed to allow you to call certain plugin or built in theme functions within the post/page editor. This code snippet allows you to use shortcodes in a template file as well.

More »

« Previous Entries