|
#1
Jun 14, 2011, 01:21 AM
|
|
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!
|
#2
Jun 14, 2011, 05:34 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Search the forums, can't use php in theme options anymore
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Jun 14, 2011, 06: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!
|
#4
Jun 14, 2011, 07:23 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Jun 14, 2011, 10:54 AM
|
|
Thanks. Would it be too much to ask for help with translating those variables into php that makes sense?
|
#6
Jun 14, 2011, 11:17 AM
|
|
Hi juggledad, I found the way. Thanks anyhow!
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
Post Page Info Items Question
|
joestyer |
Post-Kicker, -Byline & -Footer |
1 |
Aug 8, 2010 05:50 AM |
Sociable, NextPage, and Post/Page Info Items ... A Thank You.
|
fromtheranks |
Plugins & Atahualpa |
0 |
Jun 26, 2009 10:40 PM |
Post/Page Info Items - Trackbacks
|
Andrea |
Post-Kicker, -Byline & -Footer |
2 |
Feb 27, 2009 06:13 AM |
Post Info Items and new plugins
|
technstuff |
Plugins & Atahualpa |
9 |
Feb 26, 2009 08:30 PM |
Post / Page Info Items - Button crashes comp, how do I add to post-footer? Image help
|
everygirlssecret |
Post-Kicker, -Byline & -Footer |
1 |
Jan 5, 2009 02:12 PM |
|