Home > Forum

Support Forum

Shorcodes work in post but not in manual excerpt

Shorcodes work in post but not in manual excerpt

Postby moriokfutai » Sun Nov 04, 2012 2:13 pm

Hi guys,

I try setting up some variable in my posts (so I can easily change them).
The shortcodes I set up for a test work well in the actual post - but do not run at all in the post excerpt (shown on the homepage and category pages).
Please note that I use manual excerpt to personalize the excerpt.

- EX: The post page: http://coolpile.com/gadgets-magazine/ke ... -keyboard/
- EX: The Excerpt Page: http://coolpile.com/page/14/ (if you do not see it on this page, just click last in the pagination feature - I tested on my very first post on this site)

Any ideas how I can get the shortcodes work in the excerpts too?

Thanks in advance.
E
moriokfutai
 
Posts: 3
Joined: Sun Nov 04, 2012 2:08 pm

Re: Shorcodes work in post but not in manual excerpt

Postby vaakash » Tue Nov 06, 2012 11:19 am

Hello,

You need to use
Code: Select all
echo do_shortcode( get_the_excerpt() );

In your theme's archive.php or category.php file wherever necessary.

Thank you.
User avatar
vaakash
Site Admin
 
Posts: 730
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Shorcodes work in post but not in manual excerpt

Postby moriokfutai » Tue Nov 06, 2012 1:30 pm

Hi Vaakash,

Thanks for the reply.

I tried it, and I get a general error message when accessing http://www.CoolPile.com. It's properly not in the right please.

Would that be too much to ask to post the exact line number where I need to add your code in the 2 php files?

Thanks in advance for your understanding. Although I have some experience in the marketing field, and I can figure out some simple HTML - I am null when it comes to PHP.

E.
moriokfutai
 
Posts: 3
Joined: Sun Nov 04, 2012 2:08 pm

Re: Shorcodes work in post but not in manual excerpt

Postby moriokfutai » Fri Nov 09, 2012 3:30 am

Hi guys.

I hoped to be able to use this plugin.
After 3 days of "fighting" with it ... I let go on it.

I decided to go with http://urbangiraffe.com/plugins/sniplets/ and is also works in the excerpts by default.

Sorry.
moriokfutai
 
Posts: 3
Joined: Sun Nov 04, 2012 2:08 pm


 


  • Related topics
    Replies
    Views
    Last post


Return to Shortcoder


phpBB SEO