- This topic has 1 reply, 2 voices, and was last updated 16 years, 4 months ago by
imported_Ryan.
-
AuthorPosts
-
April 23, 2008 at 10:39 am #44
Anonymous
MemberRyan, I am trying to modify the SuckerFish WP Plugin to suit my
website. One of
the issues I’m having is that I have modified my “widgets.phpâ€April 23, 2008 at 10:41 am #2125imported_Ryan
Memberhere are the raw codes you need to display the dropdowns without category number 10. You can edit the bit which says &exclude=10 to change which category is excluded from the dropdown and adding (for example) &exclude=3 after the first will remove category 3 as well.
This is the raw php code, so you don’t need to use the functions with these, ie: this replaces the [code:1ju3pr6v]<?php suckerfish(); ?>[/code:1ju3pr6v] code. Each of the codes below are labelled with their corresponding suckerfish function.
If you have any troubles, the code doesn’t work (I haven’t tested it) or my explanation is confusing then post back here and I’ll see what I can do to help.
suckerfish()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">
<li><a href="’ , bloginfo(‘url’) , ‘/">Home</a></li>
<li><a href="#">Pages</a>
<ul>’ , wp_list_pages(‘title_li=’) , ‘</ul>
</li>
<li><a href="#">Archives</a>
<ul>’ , wp_get_archives() , ‘</ul>
</li>
<li><a href="#">Categories</a>
<ul>’ , wp_list_categories(‘title_li=&exclude=10’) , ‘</ul>
</li>
<li><a href="#">Blogroll</a>
<ul>’ , wp_list_bookmarks(‘title_li=&categorize=0’) , ‘</ul>
</li>
</ul>’;
?>[/code:1ju3pr6v]suckerfish1()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">’ , wp_list_pages(‘title_li=’) , ‘</ul>’;
?>[/code:1ju3pr6v]suckerfish2()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">
<li><a href="’ , bloginfo(‘url’) , ‘/">Home</a></li>
‘ , wp_list_pages(‘title_li=’) , ‘
</ul>’;
?>[/code:1ju3pr6v]suckerfish3()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">
<li><a href="#">Pages</a>
<ul>’ , wp_list_pages(‘title_li=’) , ‘</ul>
</li>
<li><a href="#">Archives</a>
<ul>’ , wp_get_archives() , ‘</ul>
</li>
<li><a href="#">Categories</a>
<ul>’ , wp_list_categories(‘title_li=&exclude=10’) , ‘</ul>
</li>
<li><a href="#">Blogroll</a>
<ul>’ , wp_list_bookmarks(‘title_li=&categorize=0’) , ‘</ul>
</li>
</ul>’;
?>[/code:1ju3pr6v]suckerfish4()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">
‘ , wp_list_pages(‘title_li=’) , ‘
<li><a href="#">Archives</a>
<ul>’ , wp_get_archives() , ‘</ul>
</li>
<li><a href="#">Categories</a>
<ul>’ , wp_list_categories(‘title_li=&exclude=10’) , ‘</ul>
</li>
</ul>’;
?>[/code:1ju3pr6v]suckerfish5()
[code:1ju3pr6v]<?php echo ‘
<ul id="suckerfishnav">
<li><a href="’ , bloginfo(‘url’) , ‘/">Home</a></li>
‘ , wp_list_pages(‘title_li=’) , ‘
<li><a href="#">Archives</a>
<ul>’ , wp_get_archives() , ‘</ul>
</li>
<li><a href="#">Categories</a>
<ul>’ , wp_list_categories(‘title_li=&exclude=10’) , ‘</ul>
</li>
</ul>’;
?>[/code:1ju3pr6v] -
AuthorPosts
- You must be logged in to reply to this topic.