Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 05: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, 03: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, 06: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, 07: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, 08: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, 09: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, 09: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 10:33 AM
[How To] modify 'Category Page' aka page2cat to display posts instead of just titles juggledad Plugins & Atahualpa 37 Jun 25, 2010 09:03 AM
[SOLVED] Display today's date paulae Post-Kicker, -Byline & -Footer 0 Apr 9, 2009 09:47 AM
Right sidebar publish output on center roekoe Sidebars & Widgets 3 Mar 27, 2009 08:48 PM
Atahualpa upgrade 3.2 - now post titles are now outside white post area daisy24 Atahualpa 3 Wordpress theme 5 Feb 21, 2009 03:29 AM


All times are GMT -6. The time now is 02:43 AM.


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