Scott Reilly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post Article, but NOT on Front PageI believe you can simplify persephone’s handy tip to this:
Find the start of the loop on your index page. It looks like this
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
Directly below it, put the following code:
<?php if(1 == get_post_custom_values(exclude_from_index)) continue; ?>
And that should do it, though I haven’t verified this myself.Forum: Plugins
In reply to: editing import-mt.php for misused fieldsAssuming you don’t mind trying something I haven’t tested myself for your particular scenario (I had done something similar though), after starting with a fresh, unaltered import-mt.php file, follow these steps:
1.) Look for this:
// We're going to put extended body into main body with a more tag\
preg_match("|-----nEXTENDED BODY:(.*)|s", $post, $extended);\
$extended = trim($extended[1]);
if ('' != $extended) $extended = "n<!--more-->\n$extended";\
$post = preg_replace("|(-----nEXTENDED BODY:.*)|s", '', $post);
Change the third and fourth lines to this:
$post_content = addslashes(trim($extended[1]));\
//if ('' != $extended) $extended = "n<!--more-->\n$extended";
2.) Look for this:
// Now for the main body\
preg_match("|-----nBODY:(.*)|s", $post, $body);\
$body = trim($body[1]);
$post_content = addslashes($body . $extended);
$post = preg_replace("|(-----nBODY:.*)|s", '', $post);
Change that fourth line to this:
$excerpt = addslashes($body);
That should be it. This assumes that you don’t have any meaningful data in your MT excerpt field because it’ll overwrite the values obtained from the MT excerpt field with the MT body field (since that is where you wanted your WP excerpt to come from).
-ScottForum: Plugins
In reply to: Email Notification PluginWordPress relies on a program called sendmail to handle outgoing mail and assumes it is available locally on your webserver and that it’s already configured.
If you are worrying before-the-fact that you didn’t see configuration options for an SMTP server and haven’t had cause for WP to e-mail you yet, then try and comment on one of your posts to see if it works for you.
If not, or if you already know you don’t have access to sendmail, or if you’d rather just have e-mail go through an SMTP server and not deal with sendmail at all, you might try the plugin I made, wpPHPMailer. Requires a few very small core modifications though (changing four instances of “@mail” to “@phpmailer”).Forum: Plugins
In reply to: Comment & Post PluginsI just released a Recently Commented Posts plugin which I was able to modify into another plugin, Recent Commenters, which I announced on the forums here. It should do what you requested, Christine.