[wp-hackers] Help Needed for latest post from a selected category

Tareq Hasan tareq1988 at gmail.com
Wed Oct 14 19:15:48 UTC 2009


Hi,
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; ?>

--------------------------------------------
Best regard
Tareq Hasan
My Blog (http://tareq.weDevs.com)
Follow me: (http://twitter.com/tareq_cse)


More information about the wp-hackers mailing list