upPrev — Next Post Slide-in Box
[Plugin: upPrev Previous Post Animated Notification] Image caption's code included on the excer (4 posts)

  1. djam1317
    Posted 5 years ago #

    I installed the upPrev plugin and it was working well on our posts.
    One thing I noticed is if I have an image attached on the first of the post, the excerpt of the upPrev plugin will show the code [caption]...

    Is there any way to not show the code?



  2. Grzegorz Krzyminski
    Plugin Contributor

    Posted 5 years ago #

    Could you provide a link to that post?

    The code which appears ([caption] ?), isn't a shortcode supported by some plugin? Because all other (html) tags should be removed.

    If the problem is related to shortcodes, you may try below suggestion. I haven't tested it yet, but it should work.

    File upprev.php, line #51, change from:
    $content = preg_replace('/<[^>]*>/s','',$posts[$i]->post_content);
    $content = preg_replace('/<[^>]*>/s','',apply_filters('the_content', $posts[$i]->post_content));

  3. djam1317
    Posted 5 years ago #

    Thanks, I will try that code..
    By the way, you can see it in this post:


  4. djam1317
    Posted 5 years ago #

    Hi Grzegorz, the code you gave me fixed it!
    Thanks for the solution. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic