More tag question (4 posts)

  1. jpang
    Posted 8 years ago #

    Is there a way to have the more tag hide only a portion of a post instead of the entire part past the tag? Or will I need a plugin?

    I have text at the top of the post, then a bunch of images in between, then more text at the bottom. I will need to hide the images part.

  2. Kafkaesqui

    Posted 8 years ago #

    You'll need a plugin, or some custom code.

    This simple replacement of the_content() will remove images from a post:

    <?php echo preg_replace('/<img[^>]*>/i', '', get_the_content()); ?>
  3. jpang
    Posted 8 years ago #

    I found a plugin called Hide/Cut Post Text but it is really old and it didn't work. i need something similar to that

  4. Heather
    Posted 8 years ago #

    I really love the Hide/Cut Post Text plugin and used it a lot until it stopped working. It would be nice if someone adopted it and brought it back up to date.

Topic Closed

This topic has been closed to new replies.

About this Topic