Basically, I want my jQuery plugin to run only on article pages, that is, not on the home page, or other pages. Right now, I am doing this in the following way:
if ( is_single() ) {
launchPlugin();
}
In other words, if the is_single()
function returns true, I start my plugin. Am I doing it right? Is it universally acceptable for all WordPress blogs?