.:. gotblogua .:.

October 28, 2005
@ 0:05 / 12:05 am
by :: gotjoshua

WordPressy

Find fixes, enhancements, tidbits, tips and tricks, and my pending questions about WordPress Here ::

Why doesn’t the date show up?
the_date() only returns the date once “per day” so if you have back to back posts on the same day the_date() will not return the date again… my work around is to do a little test/cache thing in my template file like so:
< ?php $testdate=the_date('','','&lt;br /&gt;',FALSE); if ($testdate != '') { $mydate=$testdate;} echo "thedate: '$mydate'"; ?>

How do i include posts from a specific category within a page?
http://codex.wordpress.org/Template_Tags/in_category
also a by name workaround here:
http://wordpress.org/support/topic/45891

How do i exclude “” from the main page?
http://codex.wordpress.org/The_Loop#Exclude_Posts_From_Some_Category

How do i exclude the title from a certain page?

How do I include content from a “Page” within a template?
http://beetle.cbtlsl.com/archives/2005/03/02/wordpress-include-page-plugin/

1 Comment »

  1. fixes the quotes and character escaping problem in the wp-mail.php script

    http://wordpress.org/support/topic/38599

    $subject = trim(str_replace(get_settings(’subjectprefix’), ‘’, $subject));

    and

    $content = trim($content);

    to

    $subject = addslashes(trim(str_replace(get_settings(’subjectprefix’),
    ‘’, $subject)));

    and

    $content = addslashes(trim($content));

    Comment by gotjoshua — October 28, 2005 @ 0:08 / 12:08 am

Leave a comment

You must be logged in to post a comment.

RSS feed for comments on this post. TrackBack URI

this wordPress site is: Earth friendly web hosting powered by wind and solar energy