Edit date in index.php
Oke I got a atahualpa-child theme with index.php and I would like to echo date like you can see here
Code:
<?php bfa_post_headline('<div class="post-headline"><div class="date">29 <span>okt</span></div>','</div>'); ?> 10 OKT, 9 DEC, etc, etc. CSS and HTML is done, only I need to know how to echo these dates. I think something like this? Code:
<?php bfa_post_headline('<div class="post-headline"><div class="date">'. the_date(d) .'<span>'. the_date(m) .'</span></div>','</div>'); ?> |
You need to read up on using the_date() function and on formating the date you want
|
Oke I see it's not the proper way to do it! Every page has that date format :p
But how en where to add thumbnail? I got this code Code:
echo get_the_post_thumbnail(null,array( 312, 312)); Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> |
BTW - (I should have remembered this before) if you go to ATO->Edit POST/PAGE INFO ITEMS you can find how to use the %date function in the theme options in the post KICKER, BYLINE or FOOTER
Atahualpa will display each post's featured image (or thumbnail as it used to be called) automatically when you are displaying excerpts. This allows you to have an featured image in an excerpt and if you put another image in teh post, that immage will show in the full post and the featured image will not. If you want the same image, you just add the image to the begining of the post. So why are you trying to add them in? |
I alway using featured image and I would like to see it on home and inside the post without doing extra actions like posting it as a image to see in full post. Most of the authors are layzie :p
|
well if you want to have a customization, here is what you could do
Edit bra_post_parts.php (it is in the atahualpa/functions folder) and change lines145-148 which are HTML Code:
if ($do_full_post == 1) { HTML Code:
if ($do_full_post == 1) { Remember to document what you are doing so you can reapply the patch in the future if you need to. |
All times are GMT -6. The time now is 06:51 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.