This plugin supports use with custom post types, category, and tag pages.
1.0.1 Minor bug fixes
- Loop bug when no scripts defined
- Incorrect setting name caused ios and ie scripts not to show
1.0 Initial version
- Upload the plugin to the
- Activate the plugin through the 'Plugins' menu in WordPress
For pages create a file called page-[page_name].js where "[page_name]" is replaced with the slug of the page. Eg: page-about.js.
For author pages create a file called user.js and for individual user pages user-[username].js where "[username]" is replaced with the user's login name.
For different post types user [post_type].js where "[post_type]" is replaced with the name of the custom post type. You can also use just 'post' for regular posts. Eg. post.js.
For individual posts use [post_type]-[post_name].js where "[post_type]" is replaced with the name of the custom post type or just 'post' for regular posts, and "[post_name]" is the slug of the post. Eg. post-10-tips-for-baking-pies.js, or, say if you had a "recipes" post type use something like recipes-classic-french-cheesecake.js.
For tag pages use tag.js or tag-[tag_name].js where "[tag_name]" is replaced with the slug of the tag
For category pages use category.js or category-[category_name].js where "[category_name]" is replaced with the slug of the category
For archive pages use archive.js
For home and front pages use home.js and front-page.js respectively
NOTE: You can place your custom JS files in either the base directory of your theme, or in a "js" subdirectory inside your theme, but try to be consistent with where you place them.