• I put some php code in a text widget, which made all widgets disappear from the sidebars when the page is displayed.

    I can still edit/reorder/save widgets in Appearance->Widgets (although I am seeing %BEG_OF_TITLE%php%END_OF_TITLE% printed at the very end of the Current Widgets stack.

    Any thoughts on what file I need to clean out to get my widgets back?

Viewing 1 replies (of 1 total)
  • I’m having the same problem. With me it has something to do with my database select code, which is the second line of code in the following:

    <?php
     $wp_tagID = get_query_var('tag_id');  
    
    mysql_select_db("jwrbloom_hhr");
    
    $query = 'SELECT * FROM playerRank';
    $results = mysql_query($query);
    while($line = mysql_fetch_assoc($results)) {
    
    if ($line['wpID'] == $wp_tagID)  {
    
    	echo '<div class="player">';
    	echo '<div>' . $line['nameFirst'] . ' ' . $line['nameLast'] . '</div>';
    	echo '<div><strong>' . $line['height'] . ' ';
    		if ($line['position'] == 'PG')  {echo 'Point Guard';}
    		elseif ($line['position'] == 'SG')  {echo 'Shooting Guard';}
    		elseif ($line['position'] == 'SF')  {echo 'Small Forward';}
    		elseif ($line['position'] == 'PF')  {echo 'Power Forward';}
    		elseif ($line['position'] == 'C')  {echo 'Center';}
    		echo '</strong></div>';
    	echo '<div><strong>' . $line['hschool'] . '</strong></div>';
    
    	echo '<div><img src="/wp-content/uploads/' . $line['nameLast'] . $line['nameFirst'] . '.jpg" width=150 height=200></div>
    
    	</div>';
    }
    
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Widgets not showing up in sidebars’ is closed to new replies.