WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Archive List Widget
Archive link dont exclude categories (9 posts)

  1. psn
    Member
    Posted 1 year ago #

    Hi

    I have tested your plugin and in settings I can chose the category which I want to exclude but if I chose to have link to Archive instead of expand all categories for the years and month is comming up including the excluded ones. I assume this is a bug as even if I chose link to yearly archive the excluded categories should not be shown.

    I am not using any cache plugin.

    Can this be fixed?

    Per

    http://wordpress.org/extend/plugins/jquery-archive-list-widget/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    What do you mean by archive link? Idon't understand the bug. Can you give me some steps to reproduce it?

  3. psn
    Member
    Posted 1 year ago #

    Hi

    With archive link I mean when you click on Year or Month link I get all yearly or monthly post including post from the excluded category.

    The only effect I can see is that the number of post for each month is correct but not when I execute by clicking the archive year/month link.

    So the exclude don't work as I thought.

    I have tested to change the setting under Extra option to Only expand by clicking the symbol and this works but when clicking on each Month link under each year I get all post again including the excluded category.

    So either your plugin don't work as expected or I have a clash somewhere from other plugin that cause this. In meantime when you test the above I will test some more meaning to deactive some category/archive plugins that we have.

    I hope the above can help you tp reproduce the issue.

    Per

  4. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    Ohh i see, no currently this is how the plugin works. You're the first one to use it like that. Because links will use wordpress' default links, if you want to exclude you'll need to use another plugin with this one or modify template to do the filtering (you can load this plugin's settings)

  5. psn
    Member
    Posted 1 year ago #

    Ok but what is the purpose of your plugin then as no exclusion is done??
    I mean for exclusion of category.

    Per

  6. psn
    Member
    Posted 1 year ago #

    Can you give me an example how to modify template so the exclusion from your plugin will work the way I want?

  7. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    On your template, there should be a query_post() function, you can read at wordpress codex http://codex.wordpress.org/Function_Reference/query_posts how to exclude categories, basically you'll need to pass the ids (with negative value) of the categories to exclude.

    To avoid writing ids, etc. You'll need to investigate how to load excluded categories from my plugin (i saved it as an array) and pass it to the function.

    Hope this helps you

  8. psn
    Member
    Posted 1 year ago #

    Hi

    I try my question again: What purpose has your option of exclude categories in widgets settings?

    Only effect I can see is when I chose option to see number of post for each month nothing else.

  9. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    To not display some post of certain categories in the menu (in the count, or lis) it doesn't affect navigation. Because there are some plugins or alternatives to hide categories in the navigation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic