Quote:
Originally Posted by Flynn
Yes, in Atahualpa everything is done by index.php.
You can make a copy of index.php as single.php (or page.php, category.php etc...)
Or put your code into index.php with a conditional statement:
PHP Code:
<?php if ( is_single() ) { ?>
YOUR CODE HERE
<?php } ?>
|
I am experiencing a related issue in attempting to add the new facebook "like" button to my posts. I inserted the code
<?php if ( is_single() ) { ?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo
urlencode(get_permalink($post->ID)); ?>&layout=standard&
show_faces=true&width=450&action=like& colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" style="border:none;
overflow:hidden; width:450px; height:60px"></iframe>
<?php } ?>
inside the loop section of index.php. the content appeared above the body, as seen here
http://btrandolph.com/2010/04/go-jar...media-clients/. in addition, it appears only for my latest post. the link works as promised, it's just in the wrong place.
I tried moving the section to different pleces above the loop end in the index.php file. I also tried putting it into the body section in the HTML/CSS inserts area of the options screens. I then removed it from everywhere. however, it is still showing up in the one post!
I'd appreciate any suggestions.