Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   The short code and excerpt problem. (http://forum.bytesforall.com/showthread.php?t=3527)

eerms Sep 19, 2009 05:55 AM

The short code and excerpt problem.
 
I have WP version 2.8.4 and I use customized Atahualpa with Viper's Video Quicktags.
This is my first Atahualpa site so bear with me.
Most of things I have worked out, but there are a couple of things that are not working for me.

The most annoying thing is that short codes (and the link inside them) used by Viper's plugin show up in the excerpt as a text.
It would be a nice idea to get rid of these links or make wp process them so the embedded video shows up.

I have searched around and it seems the only working solution is to add this
Code:

add_filter( 'the_excerpt', 'do_shortcode', 11 );
line in the functions.php file excerpts section. Maybe it has worked for someone (with a different theme?), but in my case it just makes everything inside the short code into a link.

Viper's developer pointed out that if this isn't working for someone then they are out of luck. I believe that there has to be a solution and I don't believe I'm the only one with this problem. I tried to place this code in different section of the functions.php and tried different versions of the code, but with no result.

Maybe someone here could help me?

juggledad Sep 20, 2009 12:42 PM

What version of Atahualpa and PHP?

what have you got at ATO->Configure EXCERPTS->Don't strip these tags?

What is the url pointing at an example?

eerms Sep 21, 2009 03:30 AM

Atahualpa is 3.4.1
PHP is 5.2.6

In the don't strip these tags section i have <p>

my page is dq.lv (i have now selected to display full post everywhere, but would like to switch to excerpts in archive view if this problem is solved).

also I to have some problems with featured content gallery, but i think i will fix that today.

juggledad Sep 22, 2009 04:49 AM

can you switch to excerpts so I can see the issue?
Also try adding <a> to the 'In the don't strip these tags' - by default, all the html in a excerpt will be stripped, so if you have a <div> or <a..> or <ul> - you need to add them to the list of the do not strip

eerms Sep 22, 2009 03:08 PM

Ok. I switched on the excerpts in archives (here is a link to an archive page with some short code - http://www.dq.lv/?m=200909&paged=3)

Added also <a> to the don't strip section.

juggledad Sep 22, 2009 04:33 PM

What is the actual contents of the post? do a cut and then hit the little HTML button above and paste the code between the [ html ] and [ /html ]


All times are GMT -6. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.