Posted By

j4v3d on 11/15/16


Tagged

wordpress content jquery read more reveal


Versions (?)

Extending the read more link in WordPress pages


 / Published in: PHP
 

Use jQuery to slideToggle the content.

  1. <div class="pageContent">
  2. <div class="content">
  3. <?php $content_arr = get_extended ( $post->post_content ); echo $content_arr['main']; echo '<span class="slideContent">[read more]</span>'; ?>
  4. </div>
  5. <div class="readMoreDiv">
  6. <?php $content_arr = get_extended ( $post->post_content ); echo $content_arr['extended']; ?>
  7. </div>
  8. </div>

Report this snippet  

You need to login to post a comment.