Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] How to enable something in all posts without it appearing on pages (http://forum.bytesforall.com/showthread.php?t=7981)

maverick9999 Jul 6, 2010 12:00 PM

[SOLVED] How to enable something in all posts without it appearing on pages
 
Hello everyone - thank you for looking at my post. I am using Atahualpa 3.5.1. I am trying to use something called 'emo vote' for all my posts. It tells you to insert the following code into index.php and single.php file:

<?php if (function_exists('emo_vote_display')) emo_vote_display('No votes', '1 vote', '% votes'); ?>

I inserted it in the backend of atahualpa to the 'style and edit center column' area and inside the 'wordpress loop'. When I do that, it does appear a the beginning of each of my posts, but it also appears on all the pages. So I tried:

<?php if ( is_single() ) { ?>
<?php if (function_exists('emo_vote_display')) emo_vote_display('No votes', '1 vote', '% votes'); ?>
<?php } ?>

This worked to get rid of the voting on each page, and kept it in the posts. However, you have to click and 'expand' the post to it's own page to actually see the voting - you can't see the voting bar on the front page.

Any suggestions? Thank you in advance!

juggledad Jul 6, 2010 01:59 PM

Try changing the is_single to '!is_page()'

lmilesw Jul 6, 2010 02:01 PM

In ATO>Cofigure Excerpts set the various item to show full posts.

maverick9999 Jul 6, 2010 06:04 PM

Quote:

Originally Posted by juggledad (Post 36278)
Try changing the is_single to '!is_page()'

Thank you - this worked!


All times are GMT -6. The time now is 01:16 AM.

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