StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-22-2009, 02:38 AM
carolepyke carolepyke is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Posts: 402
Default 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? :)
  #2  
Old 06-22-2009, 03:41 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default 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,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #3  
Old 06-22-2009, 07:59 AM
carolepyke carolepyke is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Posts: 402
Default 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'));?>
  #4  
Old 06-22-2009, 09:54 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default 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,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #5  
Old 06-22-2009, 10:13 AM
carolepyke carolepyke is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Posts: 402
Default Re: no date, author name or comment

Thank you, I will give it a try.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Author, Date and Comment Details on all pages JamesFalconer General Discussion 5 04-08-2010 11:05 AM
Remove the date, author and leave a comment link karenjill General Discussion 5 02-18-2010 03:35 PM
remove date, comment, tag and author from listing billhunt General Discussion 6 12-10-2009 06:29 PM
Removing post date & author as well as comment field digitalaudioservice General Discussion 2 03-04-2009 12:48 PM


All times are GMT -5. The time now is 11:21 PM.

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