StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   no date, author name or comment (http://www.studiopress.com/support/showthread.php?t=10124)

carolepyke 06-22-2009 02:38 AM

no date, author name or comment
 
I have added a blog post to my front page and all seems to be working well except I have lost the date, author name and comment. What have I deleted and from where? :)

CharlesClarkson 06-22-2009 03:41 AM

Re: no date, author name or comment
 
Quote:

Originally Posted by carolepyke
I have added a blog post to my front page and all seems to be working well except I have lost the date, author name and comment. What have I deleted and from where? :)

I'm going to guess that everything is fine because the home page of this theme doesn't list date, author name and comment of blog posts. The idea is to present a small image and some text to get people to click through to the whole post.


HTH,

carolepyke 06-22-2009 07:59 AM

Re: no date, author name or comment
 
I know the theme doesn't but I am talking about the blog post which usually does have author, date and comment. This is the code I have used:

<?php $recent = new WP_Query("cat=&showposts=1"); while($recent->have_posts()) : $recent->the_post();?><h2><?php the_title(); ?></h2><?php the_content(__('Read more'));?>

CharlesClarkson 06-22-2009 09:54 AM

Re: no date, author name or comment
 
Quote:

Originally Posted by carolepyke
I know the theme doesn't but I am talking about the blog post which usually does have author, date and comment.

The front page doesn't (normally) present those fields for blog posts or any other kinds of post.


Quote:

Originally Posted by carolepyke
This is the code I have used:

<?php $recent = new WP_Query("cat=&showposts=1"); while($recent->have_posts()) : $recent->the_post();?><h2><?php the_title(); ?></h2><?php the_content(__('Read more'));?>

Look in the index.php file to see how to get the fields you are looking for. They are in the "date" div.


HTH,

carolepyke 06-22-2009 10:13 AM

Re: no date, author name or comment
 
Thank you, I will give it a try.


All times are GMT -5. The time now is 06:45 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.