Im using wordpress to develop a site … I want to display everything in the first < p > < /p > tag and then wrap the rest of the content in a div, is this possible using jQuery?
to display the content im using the wordpress loop as follows:
query_posts(array('p' => 2, 'post_type' => 'page'));
while (have_posts()) { the_post();
the_content();
}
Cheers,
Styling the first paragraph would be cleaner, but if the intent is to encapsulate subsequent paragraphs in a container to hide them from view, then jQuery will allow you to do that. Sample code follows, your solution will obviously depend upon your particular setup.