Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Using jquery, How do I show a checkbox with the list of tags in the sidebar, and only show posts of the checked tag?

I cant seem to find this anywhere

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Grab and go, buddy! Had fun figuring this one out :)

  • Create a file and upload to your plugins.

  • Call list_ajax_tags() in theme where you want to display these tags.

  • Modify to suit your needs

http://pastebin.com/3eZWEv5K

(had trouble formatting the code here)

share|improve this answer
    
yesssssssssss. thanks –  Jack Stewart Nov 17 '11 at 2:27
    
@Jack You're welcome! One thing I forgot to go back and add was a conditional within the jQuery to only have one box checked at a time. Also the even currently fires whether you check or uncheck since it's just looking for the click and not the "checked" attribute. Anyway, if you need help with that too, let me know! –  5t3ph Nov 17 '11 at 13:17
    
yeah yeah for sure. thanks so much, will let you know if i stumble into a problem. –  Jack Stewart Nov 17 '11 at 16:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.