WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Folding Category List (FoCaL)] [Plugin: Folding Category List] Adding into template (4 posts)

  1. staceyk18
    Member
    Posted 5 years ago #

    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

  2. stvwlf
    Member
    Posted 5 years ago #

    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.

  3. lonewolfonline
    Member
    Posted 5 years ago #

    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

  4. FalconAyr
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic