Wordpress
From GreyWiki
Contents |
Purpose
Some Wordpress tricks we want to accumulate, since we're doing a lot with that particular rig now...
Changing the "(more...)" text
Designating the "More" Text
Edit in the template file: <?php the_content('Read on...'); ?>
Include Title in "More"
Edit in the template file: <?php the_content("Continue reading " . the_title('', '', false)); ?>
LJ Crosspost Plugin and WordPress 2.5
As per this Vox post, a quick edit of the plugin will make it work on 2.5 again. Change:
if(version_compare($wp_version, "2.1", "<")) {
require_once(ABSPATH . '/wp-includes/template-functions-links.php');
}
To:
if(version_compare($wp_version, "2.3", "<")) {
require_once(ABSPATH . '/wp-includes/link-template.php');
}
Clearing Spam from Database
This plugin allows you to interact with the comments flagged as ’spam’ in WordPress.
King-Categories Children
When using the King-Categories widget to display just the children of a given category, one needs to turn on "hierarchical" and "show children" or it won't work correctly.
