Creating a unique ID dynamically for the_content()
-
Hey guy’s I’m trying to give my <p> tags unique ID’s so that I can call one with javascript for a pop up, if I’m thinking about this all wrong or theres a better way please tell me
right now my idea is:
<div class=”description”><?php the_content(‘<p value=”‘.get_the_ID().'”>’,'</p>’); ?></div>the jquery controls it like this:
$(“.thumb > li > .description > p”).stop().animate( {
top: ‘373px’, opacity: ‘.60’ }, 200);you can see where im at here:
https://thepromisedland.us/bestinteractive/portfoliothe problem is instead of getting a specific <p> you get all of them, which makes sense but I need to fix it.
any help is greatly appreciated
- The topic ‘Creating a unique ID dynamically for the_content()’ is closed to new replies.