Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   wp-polls (http://forum.bytesforall.com/showthread.php?t=218)

mesti Feb 6, 2009 04:31 PM

wp-polls
 
Hi, I´ve downloaded wp-polls plugin, but I have a problem..
when I want to add it to my sidebar as a widget it doesn't appear at "widget list"

how can i fix it?
thanks

Flynn Feb 7, 2009 07:16 AM

Please try with the "default" theme to see if it's theme related.

brunomotta Jun 5, 2009 02:06 AM

Hi.
I have installed wp-polls too. I am using Atahualpa 3.33 with WP 2.7. Installation is ok. The Polls widget is correctly displayed in the "right sidebar" list under Admin-Widgets menu. But no polls appears on the right sidebar, although i have inserted the code

<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
<li>
<h2>Polls</h2>
<ul>
<li><?php get_poll();?></li>
</ul>
<?php display_polls_archive_link(); ?>
</li>
<?php endif; ?>


into the footer.php file here:

<!-- Right Sidebar -->
<td id="right">

<?php // Widgetize the Right Sidebar
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>

<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
<li>
<h2>Polls</h2>
<ul>
<li><?php get_poll();?></li>
</ul>
<?php display_polls_archive_link(); ?>
</li>
<?php endif; ?>

<?php endif; ?>

</td>
<!-- / Right Sidebar --
>

Can you explain whai i am doin' wrong? Sorry but i am quite new in WP and in Atahualpa...
Staging website is http://www.bmotta.net/cartalibera

Thanks
Bruno

Flynn Jun 8, 2009 08:45 AM

The place where you put the code is only displayed if there are no widgets in the right sidebar. Either put your code above

<?php // Widgetize the Right Sidebar

or below

<?php endif; ?>

or put your code into a PHP widget http://wordpress.org/extend/plugins/php-code-widget/ instead of hardcoding it into footer.php



All times are GMT -6. The time now is 02:30 PM.

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