I understand how to use conditional tags to identify a wordpress page with php:
if (is_page('Home')) {run function here} Can (should?) this be done with jQuery also? For example, I would like to run the accordion widget on a F.A.Q. page only. Could I do something like this: if (is_page('F.A.Q.)) { jQuery(document).ready(function() { jQuery("#faq_accordion").accordion(); }); } Is this even necessary? Sorry in advance if this is more of a javascript question.