Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Post info items not working in 3.6.7? (http://forum.bytesforall.com/showthread.php?t=14624)

cfibanez Jun 14, 2011 12:21 AM

[SOLVED] Post info items not working in 3.6.7?
 
I have a sticky at the top of the blog homepage that does not display the date (byline) or the footer. This was achieved in 3.6.4 by editiing the post info items in the theme options. After upgrading to 3.6.7, this no longer works and the date and footer are shown in the sticky. The theme options I was using are as follows:

For the byline:
<?php if (!is_sticky() ) { ?>
<em>%date('F jS, Y')%</em>
<?php } ?>

For the footer:
<?php if (!is_sticky() ) { ?>
Category: %categories-linked(', ')% | %tags-linked('Tags: ', ', ', ' | ')% %comments('Leave a comment', 'One comment', '% comments', 'Comments are closed')%
<?php } ?>

After upgrading to 3.6.7, the date and footer appear in the sticky anyway, regardless of this code.

Please help!

juggledad Jun 14, 2011 04:34 AM

Search the forums, can't use php in theme options anymore

cfibanez Jun 14, 2011 05:47 AM

Thanks! May be you could just let me know where I can insert my php code for theme options (byline and footer) mentioned above. Cant this be inserted somewhere to achieved the same result? css.php? js.php? index.php? Elesewhere?

Many thanks!

juggledad Jun 14, 2011 06:23 AM

you will want to edit the index.php and put it there. You won't be able to mix the Atahualpa variables like '%date()' with the php though.

cfibanez Jun 14, 2011 09:54 AM

Thanks. Would it be too much to ask for help with translating those variables into php that makes sense?

cfibanez Jun 14, 2011 10:17 AM

Hi juggledad, I found the way. Thanks anyhow!


All times are GMT -6. The time now is 12:14 AM.

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