• Hi
    I’ve got a “Latest blog post” section on my home page, linking to the latest blog post with a picture and a short excerpt. However, the excerpt is also including the picture caption as a shortcode. Is there any way I can get it to ignore this? Can’t find anything in the Function Ref – not to say there’s nothing there.

    My code is this:

    <p class="blog-link-excerpt"><?php echo get_excerpt('220'); ?><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span class="more">&nbspRead More</span></a></p>

    Thanks

Viewing 1 replies (of 1 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

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