WordPress.org

Ready to get started?Download WordPress

Forums

upPrev Previous Post Animated Notification
Image caption's code included on the excer (4 posts)

  1. djam1317
    Member
    Posted 3 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?

    Thanks!

    http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/

  2. Grzegorz Krzyminski
    Member
    Plugin Contributor

    Posted 3 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);
    to
    $content = preg_replace('/<[^>]*>/s','',apply_filters('the_content', $posts[$i]->post_content));

  3. djam1317
    Member
    Posted 3 years ago #

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

    http://www.australiancreditcards.com.au/personal-finance-tips/a-frugalists-guide-to-thriving-in-university/

  4. djam1317
    Member
    Posted 3 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