WordPress.org

Ready to get started?Download WordPress

Forums

Sub Categories Widget
[resolved] Sub Categories Widget not showing on category pages (3 posts)

  1. Kristof Van der Jonckheyd
    Member
    Posted 2 years ago #

    The widget isn't showing up when I'm on a category page. Here's my site: rockingyourlife.net It should normally show in the bottom of my sidebar.

    What could be the cause of this?

    This is just the widget that I was looking for, so it would be nice if I could solve this :-)

    Thanks!

    http://wordpress.org/extend/plugins/sub-categories-widget/

  2. BC
    Member
    Plugin Author

    Posted 2 years ago #

    Your site seems to have issues and I can't even view it. I don't have this issue on my site, where the plugin is used a number of times. I expect that, given the current status of your site, this isn't an issue with the plugin.

  3. Kristof Van der Jonckheyd
    Member
    Posted 2 years ago #

    Oops, yeah I accidentaly left some whitespace in the wrong place... My site couldn't load properly because of this.

    Having fixed this the plugin still doesn't show up. I know the problem resides in my website, since it is working on every other website :-)

    I guessed this plugin must use the category ID as an important parameter for it's output. So I looked for a function that get's the ID of the current category you're at, and echos it. Here's this function:

    function getCurrentCatID(){
    global $wp_query;
    if(is_category() || is_single()){
    $cat_ID = get_query_var('cat');
    }
    echo $cat_ID;
    }

    The weird thing is that on my site, in every category it allways echoed "1"... Thats the uncategorized category ID. I have no idea what could be the cause of this... Does anyone have any ideas? :-)

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic