WordPress.org

Forums

Cat + Tag Filter
[resolved] Update from plugin "Views all tags a view current category " (17 posts)

  1. uradvd
    Member
    Posted 3 years ago #

    Hello all, i am extend function to view all tags for a specific category.

    Test code and рlease send your recommendations

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    http://wordpress.org/extend/plugins/cat-tag-filter-widget/

  2. uradvd
    Member
    Posted 3 years ago #

    this extensions to original function anyone unnecessary?

  3. ajayver
    Member
    Plugin Author

    Posted 3 years ago #

    I didn't understand what it does :( Do you have a link to see how it works?

  4. uradvd
    Member
    Posted 3 years ago #

    sory my english=(
    this extend function display only specific tags to open category, not display tags are not in the category.

    example:
    current work plugin in all categories display all tags
    notebook > dell
    hp
    apple
    samsung
    asus
    seo
    smo
    search optimize > dell
    hp
    apple
    samsung
    asus
    seo
    smo

    my update current plugin
    display only tags current categories
    notebook > dell
    hp
    apple
    samsung
    asus
    search optimize > seo
    smo

  5. diss0nance
    Member
    Posted 2 years ago #

    what he is doing is maybe the feature I am looking for... so only the relevant tags (not all tags) are displayed after a category is selected.

  6. ajayver
    Member
    Plugin Author

    Posted 2 years ago #

    Может по русски говоришь? :)

  7. diss0nance
    Member
    Posted 2 years ago #

    что он делает, может быть, особенность, которую я ищу ... так только соответствующие тэги (не все метки) отображаются после категория выбрана.

  8. ajayver
    Member
    Plugin Author

    Posted 2 years ago #

    I didn't mean you, diss0nance :) I meant uradvd.
    Now I understand what his code does, but it is better to discuss it in Russian if he is Russian because I'm Russian too :)

  9. diss0nance
    Member
    Posted 2 years ago #

    ahh cool... cuz I have no idea if that translation worked or not lol

  10. uradvd
    Member
    Posted 2 years ago #

    блин я тоже руский=) а тут паримся=)
    Короче код делает вот что он выводит только определенные теги записей категори в которой ты находишся в данный момент.

    Сейчас выводятся все метки сайта в какой ты ни находился категории, что не верно т.к мы можем быть в категории где метка вообще может и не присутствовать

    [Moderator Note: These are English language forums. Please use English.]

  11. uradvd
    Member
    Posted 2 years ago #

    diss0nance

    yes, only relevant tags category (not all tags for site, current version plugin)

  12. uradvd
    Member
    Posted 2 years ago #

    Code in pastebin http://pastebin.com/VZVp1pEu
    moderator delete code=(
    pulled out google cache=)

  13. ajayver
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you!
    I've added your code in to development version of the plugin. Try it, and if it works fine, I will mark it as stable.

  14. uradvd
    Member
    Posted 2 years ago #

    plugin work fine and it correct!!!

  15. tomception
    Member
    Posted 2 years ago #

    Hi!

    If i wanna list TAGs for only one category(and subcategories) is it possible?
    So don't need the category selection, i wnna pre-set the category, and the plugin will show TAGs for only this category, visitors can't change the category, only the TAGs..
    In my site, visitors can adopt dogs, one dog is one post, with picture, and tags, in my "Dogs"-category. But i have many post, with many tags in other categories.. i don't wanna see this tags, just the dog's. I can change the code, if you take me an example..
    Thank you for your help!

  16. ajayver
    Member
    Plugin Author

    Posted 2 years ago #

    Find this line:
    <?php cat_options(); ?> <br />
    And replace it with this:
    <input type="hidden" name="cat" value="5" >

    Where 5 - is your dogs category id.

  17. tomception
    Member
    Posted 2 years ago #

    WOW! Thank you very very much! I'll try it soon:)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic