Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

The short code and excerpt problem.


  #1  
Old Sep 19, 2009, 05:55 AM
eerms
 
3 posts · Sep 2009
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?

Last edited by juggledad; Sep 22, 2009 at 04:46 AM.
  #2  
Old Sep 20, 2009, 12:42 PM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 21, 2009, 03:30 AM
eerms
 
3 posts · Sep 2009
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.
  #4  
Old Sep 22, 2009, 04:49 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 19, 2009 at 04:38 AM.
  #5  
Old Sep 22, 2009, 03:08 PM
eerms
 
3 posts · Sep 2009
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.
  #6  
Old Sep 22, 2009, 04:33 PM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 ]
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posts/Excerpt Problem jfrenaye New Versions, & Updating 5 Oct 28, 2009 09:48 AM
[SOLVED] Problem with code in HTML/CSS Inserts xavison Post-Kicker, -Byline & -Footer 4 Jun 26, 2009 11:59 AM
Problem with lingering code in footer The CajunFoodie Post-Kicker, -Byline & -Footer 0 Mar 19, 2009 09:54 AM
Using short codes and sidebar navigation trt823 Atahualpa 3 Wordpress theme 1 Mar 1, 2009 03:44 PM
Excerpt problem- image disappears blueapple Excerpts, Read more, Pagination 2 Feb 14, 2009 12:20 PM


All times are GMT -6. The time now is 09:51 AM.


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