WordPress.org

Ready to get started?Download WordPress

Forums

More tag question (4 posts)

  1. jpang
    Member
    Posted 6 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?

    Example:
    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 6 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
    Member
    Posted 6 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. privatestorm
    Member
    Posted 6 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

Tags