Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Display only post titles and publish date


  #1  
Old Aug 22, 2009, 06:47 PM
vincotek
 
10 posts · Mar 2009
I am trying to achieve the following look on all my category pages;

{mm/dd/yy] Post title

Basically I want to only list posts with the above format with the post title being the link

Is there any way to accomplish this?

Thanks in advance.
  #2  
Old Aug 23, 2009, 04:25 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
At STyle & Edit CENTER COLUMN -> The LOOP

replace

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>


with

<?php if ( !is_category() ) { ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
<?php } ?>
  #3  
Old Aug 23, 2009, 07:08 PM
vincotek
 
10 posts · Mar 2009
Thank you Flynn,

Can the Published Date be placed on the same line as the Headline?
  #4  
Old Aug 29, 2009, 08:42 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
PHP Code:
<div style="width:60px;float:left"><?php the_date(); ?></div>
<?php bfa_post_headline('<div style="margin-left:70px" class="post-headline">','</div>'); ?>
To change the date output or to style the date items (year,month,day) differently, use

PHP Code:
<?php $date explode(' 'the_date('M j Y','','',FALSE)); ?>
<div style="width:60px;float:left">
<div class="date-month"><?php echo strtoupper($date[0]); ?></div>
<div class="date-day"><?php echo $date[1]; ?></div>
<div class="date-year"><?php echo $date[2]; ?></div>
</div>
<?php bfa_post_headline('<div style="margin-left:70px" class="post-headline">','</div>'); ?>
<br style="clear:left" />
To vertically align the post headline and the date use a table as a table-less solution will require a whole bunch of extra DIV's.

PHP Code:
<?php $date explode(' 'the_date('M j Y','','',FALSE)); ?>
<table><tr><td>
<div style="width:60px">
<div class="date-month"><?php echo strtoupper($date[0]); ?></div>
<div class="date-day"><?php echo $date[1]; ?></div>
<div class="date-year"><?php echo $date[2]; ?></div>
</div>
</td><td>
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
</td></tr></table>
CSS Insert:

PHP Code:
div.date-month {
....
}
div.date-day {
...
}
div.date-year {
...

  #5  
Old Aug 31, 2009, 09:44 AM
vincotek
 
10 posts · Mar 2009
Thank you Flynn!

Your answer was well worth a donation for all the great work you do and the support you offer.
  #6  
Old Sep 8, 2009, 10:03 AM
mbro
 
12 posts · Jul 2009
I am using this amended code - sorry to hi-jack, however I want the post title etc to be central to the page, which before I used this code it was, now it isnt.

I have set the headline options in ATO > Style POSTS & PAGES to text-align=center which was working before using this code.

I currently have in the LOOP

PHP Code:
<?php $date explode(' 'the_date('M j Y','','',FALSE)); ?>
<table align="center"><tr><td>
<div align="center"></div>
<div style="width:60px" align="center">
<div class="date-month"><?php echo ($date[0]); ?></div>
<div class="date-day"><?php echo $date[1]; ?></div>
<div class="date-year"><?php echo $date[2]; ?></div>
</div>
</td><td>
<?php bfa_post_headline('<div class="post-headline" text-align="center">','</div>'); ?>
</td></tr></table>
  #7  
Old Sep 8, 2009, 10:44 AM
mbro
 
12 posts · Jul 2009
Sorry - sorted it now, am sure most will know how to do it anyway! Apologies for my poor html knowledge!

PHP Code:
<p><div align="center"><?php $date explode(' 'the_date('M j Y','','',FALSE)); ?> 
<table align="center"><tr><td>
<div align="center"></div>
<div style="width:60px" align="center">
<div class="date-month"><?php echo ($date[0]); ?></div>
<div class="date-day"><?php echo $date[1]; ?></div>
<div class="date-year"><?php echo $date[2]; ?></div>
</div>
</td><td>
<?php bfa_post_headline('<div class="post-headline" text-align="center">','</div>'); ?>
</div></p></td></tr></table>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Page titles in single pages with out removing post titles robertbrand Atahualpa 3 Wordpress theme 7 Jun 21, 2011 11:33 AM
[How To] modify 'Category Page' aka page2cat to display posts instead of just titles juggledad Plugins & Atahualpa 37 Jun 25, 2010 10:03 AM
[SOLVED] Display today's date paulae Post-Kicker, -Byline & -Footer 0 Apr 9, 2009 10:47 AM
Right sidebar publish output on center roekoe Sidebars & Widgets 3 Mar 27, 2009 09:48 PM
Atahualpa upgrade 3.2 - now post titles are now outside white post area daisy24 Atahualpa 3 Wordpress theme 5 Feb 21, 2009 04:29 AM


All times are GMT -6. The time now is 04:05 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.