Making the title reveal the post
-
AJAXed WP:
I found this plugin tonight and it looks to do exactly what I want it to. I have been able to set up the comments to hide/reveal but I’m having trouble doing the same with the post. I want the title of the post to reveal the post when clicked.
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><?php do_action('awp_title'); ?></h2>
That is the closest that I’ve come, but its obviously not right as I get “Testing the AJAX onclick=”aWP.doit({‘id’: ’10’, ‘type’: ‘post”show’: ‘Testing the AJAX ‘, ‘hide’: ‘Testing the AJAX ‘}); return false;” id=”awppost_link_10″” for a title with nothing being clickable.
I’m pretty sure that I’m just using the function wrong and any help would be appreciated.
Thanks!
- The topic ‘Making the title reveal the post’ is closed to new replies.