Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to enable something in all posts without it appearing on pages

Old Jul 6, 2010, 12:00 PM
8 posts · May 2010
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!
Old Jul 6, 2010, 01:59 PM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try changing the is_single to '!is_page()'
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Jul 6, 2010, 02:01 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
In ATO>Cofigure Excerpts set the various item to show full posts.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Jul 6, 2010, 06:04 PM
8 posts · May 2010
Originally Posted by juggledad
Try changing the is_single to '!is_page()'
Thank you - this worked!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How enable comment for pages ? (bytesforall theme) claudio4j Comments, trackbacks & pings 8 Feb 28, 2012 07:00 PM
Is there a way to enable comment previews? ljenkins Comments, trackbacks & pings 1 Nov 28, 2009 05:18 AM
[SOLVED] Rogue text appearing above posts SimonKemp Post-Kicker, -Byline & -Footer 3 Nov 17, 2009 04:39 PM
Widgets appearing on sidebar and on the bottom of new posts dyertribe Sidebars & Widgets 3 Jul 22, 2009 03:25 AM
[SOLVED] Available Widgets -- Which Should I Enable fromtheranks Sidebars & Widgets 6 Jun 8, 2009 12:07 AM

All times are GMT -6. The time now is 12:38 PM.

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