Skip to content

Instantly share code, notes, and snippets.

@enigmaticape
Created November 5, 2012 13:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enigmaticape/4017258 to your computer and use it in GitHub Desktop.
Save enigmaticape/4017258 to your computer and use it in GitHub Desktop.
Wordpress PHP function which adds CSS class to currently selected archive list item
@enigmaticape
Copy link
Author

NB this code is sourced from the referenced website, I am not the author. It is placed here for display purposes.

@enigmaticape
Copy link
Author

It is linked from a post at Enigmatic Ape blog on creating a Wordpress function to add similar functionality to tags, you can find it at http://www.enigmaticape.com/blog/wordpress-listing-tags-like-wp_list_categories/

@asif2369
Copy link

Thanks for the code, it helped me a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment