I'm a jQuery newb and I'm playing with a wordpress theme. What I'd like to do is show/hide the categories that are associated with each post. I have attached an ID to each list of categories that corresponds to the pageID that WordPress gives me. ie: <div id="cat137">{categories here}</div>
Each category group has a h4 just above it that has a similar ID: <h4 id="cathead137">{post heading}</h4> Okay, so I have my basic function at the top for showing and hiding, but I am not sure how to pass a variable up to it in order to hide the specific comments section I am clicking on the title for. I can make it work if there is only 1 heading and comment section because I can just hardcode the ID number. Any ideas? Alistair