[wp-hackers] Help Needed for latest post from a selected category
Sharon Chambers
sharon at BrewerRadio.com
Wed Oct 14 19:22:00 UTC 2009
I've found most of the methods have corresponding get_* methods that allow you to parse accordingly...
$content = get_the_content();
$title = get_the_title();
$plink = get_the_permalink();
-----Original Message-----
is there any way to get the post title and content and other field like
time, tag and others as a variable in loop?
That means, i want the_content(), the_permalink() or whatever in the loop as
a variable and want to show them by echo. is there any method? I didn't
found :(
Help me please.
<?php while (have_posts()) : the_post(); ?>
<h3><a href="<?php the_permalink() ?>"><?php the_title()?></a>
<p><?php the_content()?></p>
<?php endwhile; ?>
More information about the wp-hackers
mailing list