Hi,
I want to code this into my sidebar as opposed to using widgets. I have about 10 categories so I want to use conditional tags to call specific focal lists. Can I do this?
Thanks
Stacey
Hi,
I want to code this into my sidebar as opposed to using widgets. I have about 10 categories so I want to use conditional tags to call specific focal lists. Can I do this?
Thanks
Stacey
Hi
Take a look at this plugin Fold Category List
http://www.webspaceworks.com/resources/wordpress/31/
which is intended for use as code, not as a widget. It does work with the current version of WP. Make sure you read the instructions.
Hi Stacey,
you can include a focal list anywhere within a template using the code on this page: http://www.lonewolfdesigns.co.uk/focal/2/
I have also included a sample below.
<?php
$focal = new FoldingCategoryList();
$focal->widget_FocalWidget(); // default
or
$focal->widget_FocalWidget($args); // passing widget args
or
$focal->widget_FocalWidget($args, 2); // where 2 is the widget number
?>
$args are the standard widget arguments from http://codex.wordpress.org/WordPress_Widgets_Api/register_sidebar. You can pass null and a number if you wish: $focal->widget_FocalWidget(null, 2) to show focal list number 2.
Hope that helps.
Tim
You must log in to post.