• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    Take a look at this plugin Fold Category List
    https://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: https://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 https://codex.www.ads-software.com/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

    Hi there,

    I don’t know if you are still offering support for this.

    I have the widget on a sidebar of my theme but it doesn’t seem to pick up new categories when I make them or new posts in the categories when I make them.

    I have tried rebuilding the cache but that doesn’t seem to work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Folding Category List (FoCaL)] [Plugin: Folding Category List] Adding into template’ is closed to new replies.