Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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


  #1  
Old Jul 6, 2010, 01:00 PM
maverick9999
 
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!
  #2  
Old Jul 6, 2010, 02:59 PM
juggledad's Avatar
juggledad
 
23,682 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
  #3  
Old Jul 6, 2010, 03:01 PM
lmilesw's Avatar
lmilesw
 
10,174 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.
  #4  
Old Jul 6, 2010, 07:04 PM
maverick9999
 
8 posts · May 2010
Quote:
Originally Posted by juggledad
Try changing the is_single to '!is_page()'
Thank you - this worked!

Bookmarks

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 08:00 PM
Is there a way to enable comment previews? ljenkins Comments, trackbacks & pings 1 Nov 28, 2009 06:18 AM
[SOLVED] Rogue text appearing above posts SimonKemp Post-Kicker, -Byline & -Footer 3 Nov 17, 2009 05:39 PM
Widgets appearing on sidebar and on the bottom of new posts dyertribe Sidebars & Widgets 3 Jul 22, 2009 04:25 AM
[SOLVED] Available Widgets -- Which Should I Enable fromtheranks Sidebars & Widgets 6 Jun 8, 2009 01:07 AM


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


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