I upgraded to Wordpress 2.1 two nights ago, and ever since, my links widget has not worked. I have finally figured out a solution:
In Tiga.php under wp-content\themes\tiga-06:
- andromeda strain the dvd
Change Function tiga_link_widget to:
function tiga_links_widget($args)
{
global $wpdb;
extract($args);/* Links from the 'Links Manager' */
$link_cats = $wpdb->get_results('SELECT cat_id, cat_name FROM ' . $wpdb->categories . ' WHERE link_count > 0');
foreach ($link_cats as $link_cat)
{echo '<li class="left-wp-widget %2$s">' .
$before_title . $link_cat->cat_name . $after_title .
'<ul>';
wp_get_links($link_cat->cat_id);
echo '</ul>'.
$after_widget;}
}
I tried it, but I still get this error message.
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT cat_id, cat_name FROM
I had to change the $link_cats = statement and take out an if statement.
it doesn’t work for me either :-S
Martin,
Thanks for pointing me in the right direction. I’ve updated the theme at :-
http://themes.wordpress.net/columns/3-columns/66/tiga-06/
The main changes are in :-
tiga.php
sidebar.php
themetoolkit.php (removal of extra blank lines & spaces after the
closing ‘?>’ at end of file)
If you’ve modified your version of tiga I recommend that you download winmerge (http://winmerge.org/) and use that tool to compare the above files and merge the necessary changes.
I contacted the Tiga author and he’s got a new version up at:
http://themes.wordpress.net/columns/3-columns/66/tiga-06/
See comment #38 for his explanation of the changes.
Sorry about that. I must have made changes in several different places, and it was a combination of the changes that fixed it. I will update the post with all the correct changes.
Given 2.1’s still got bugs, I’m sticking with 2.0, but the links widget don’t work there. I used the code Martin provided, but still nothing. Any help (please email me, email@tonyfleming.org) would be appreciated!
Here’s the site we’re trying to use Tiga for.
http://www.civicyouth.org/wordpress
Also having trouble getting the gap at the top of the page (between top of page and top of header image) to go away. Have reset all the paddings and margins we can find to zero, but nothing.