• Maybe its so simple but I am exhausted after 4 hours of struggling with this problem:

    I don’t want to use Dynamic sidebar and I am inserting my elements manually. when I put Last entries and search widget everything is fine but when I am trying to show Post views plugin, wp-weather plugin and any other things it ONLY show its code.

    for instance I put this [weather_display] and I expect to see widget on the page but it shows only [weather_display] as a text.

    I am sure I missing something but I dont know what.

    Please help me if you know what to do.

    Thanks a lot
    Danial

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter daanial

    (@daanial)

    When I am inserting Widgets in a Dynamic sidebar they are working well but when I am using the code which plugin says I can use everywhere they are not working:

    This is my Sidebar:

    <div class="arvand1">
    <div class="arvand1matn">
    <img src="<?php bloginfo('template_directory'); ?>/pics/lastarticles.png" alt="Last articles" />
     <ul><?php get_archives('postbypost','10','custom','<li>','</li>'); ?></ul>
    <img src="<?php bloginfo('template_directory'); ?>/pics/search.png" alt="Search" />
    
    <form id="searchform" method="get" action="index.php">
          <div>
             <input type="text" name="s" id="s" size="25" /><br />
             <input type="submit" value="Search" />
          </div>
         </form>
    
    <img src="<?php bloginfo('template_directory'); ?>/pics/mahboob.png" alt="Top viewed" />
    
    <li><a href="%POST_URL%"  title="%POST_TITLE%">%POST_TITLE%</a> - %VIEW_COUNT% views</li>
    %1$s: %2$s:
    
    <img src="<?php bloginfo('template_directory'); ?>/pics/mahboob.png" alt="Top viewed" />
    
    <ul id="Blogroll">
    <?php get_links(2, '<li>', '</li>', ' ', FALSE, '_id', FALSE, FALSE, 3, FALSE, TRUE); ?>
    </ul>
    
    <img src="<?php bloginfo('template_directory'); ?>/pics/mahboob.png" alt="Search" />
    
    <p style="text-align: center;"><strong>%POLL_QUESTION%</strong></p><div id="polls-%POLL_ID%-ans" class="wp-polls-ans"><ul class="wp-polls-ul"><li><input type="%POLL_CHECKBOX_RADIO%" id="poll-answer-%POLL_ANSWER_ID%" name="poll_%POLL_ID%" value="%POLL_ANSWER_ID%" /> <label for="poll-answer-%POLL_ANSWER_ID%">%POLL_ANSWER%</label></li></ul><p style="text-align: center;"><input type="button" name="vote" value="   Vote   " class="Buttons" onclick="poll_vote(%POLL_ID%);" /></p><p style="text-align: center;"><a href="#ViewPollResults" onclick="poll_result(%POLL_ID%); return false;" title="View Results Of This Poll">View Results</a></p></div>
    
    [weather_display]
    
      <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar(Leftinside) ) : ?>
      <?php endif; ?>
    
    </div>

    Thread Starter daanial

    (@daanial)

    Solved:
    problem is this:

    <?php if (function_exists(‘…..’)): ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple problem with gadgets in the sidebar’ is closed to new replies.