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


 
Prev Previous Post   Next Post Next
  #1  
Old Jul 6, 2010, 12:00 PM
maverick9999
 
8 posts · May 2010
[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!
 

Bookmarks



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 11:13 AM.


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