3 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
manaleak says

Hi guys,

Just wondering if you could help me. I have installed a plugin which is important to our site. Sadly for the excerpt area it automatically inserts a shortcode, rather than the text itself.

I understand that the Avenue theme does not support shortcodes in this area and as such the shortcode itself is showing up where the Excerpt text should be, which is not ideal for the general public use.

May I ask if anyone know how I can go about solving this problem? Its quite a big deal that I get this resolved.

Thank you for your help,

Tu

3366 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

add this to the bottom of your functions.php

add_filter('the_excerpt', 'do_shortcode');
3 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
manaleak says

Hi,

Thank you for your prompt reply. I just added the code to the bottom of the Avenue theme fuctions.php (website.com/wp-content/themes/Avenue/fuctions.php) and sadly it didn’t do anything.

Did I do something wrong?

cheers,

Tu


add this to the bottom of your functions.php
add_filter('the_excerpt', 'do_shortcode');

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by