• Resolved chrisjonesDE

    (@chrisjonesde)


    My writers insist on using Media Manager to insert images to articles and also to give them captions. This is fine for those pages, but on my home page I pull in the most recent posts as excerpts and it pulls in the comments as body copy.

    https://www.bounceenergy.com/blog/

    [caption id=”attachment_14166″ align=”alignright… starts off one of the posts’ excerpts, and there are many more. I tried a few online tips to remove captions from home page but nothing worked. I have turned off all plugins and that did not fix it either. Does anyone have any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • hey try placing the shortcode after the text and past

    <!–more–>

    in between the text and short code. this will stop the short code from appearing on the front page because it separates the two . and it will not show up on post page. let me know if it works

    Thread Starter chrisjonesDE

    (@chrisjonesde)

    I found that the code that it was using was the culprit. I was using:
    <? php echo dp_clean($post->post_content, 350); ?> […]
    But swapped that out with the following and it works fine:
    <?php the_excerpt(”); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Caption shortcode showing in excerpt’ is closed to new replies.