Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Excerpt length and content problem


  #1  
Old Apr 9, 2012, 05:39 PM
katherine_srcm
 
1 posts · Apr 2012
Excerpts are not displaying the content properly on posts that are generated with the Formidable plug in. I managed to get the results display table to keep the table format in the settings (don't strip <table>) but the graphs below it just show the code, and the form itself on another post is not cutting off, or displaying the radio buttons and formatting.
I tried shortening the excerpts; but this only worked on the 'results' post; the form still displays incorrectly and the right sidebar jumps down next to it.

Formidable has it's own style component - could this be put into the theme options css inserts?
Might be another workaround using static home page; but haven't set that up yet...
Any suggestions?
  #2  
Old Apr 9, 2012, 06:12 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
by default Wordpress strips all HTML from an excerpt and Atahualpa follows that lead. If you add things to the 'don't strip these tags' Atahualpa won't strip them, but the words in the html count as part of the excerpt (a word is all characters seperated by spaces so
HTML Code:
<div ID="myid" class="alignright blue bold">
would count as 5 words - if you set the excerpt to '3' then the excerpt would be
HTML Code:
<div ID="myid" class="alignright
and since that is not a complete html statement, it will shoe up on the screen that way.

you can eithor create a manual excerpt of increase the size of the excerpt.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 6, 2012, 01:46 PM
markzip
 
60 posts · Jan 2010
WP 3.4.1
Athualpa 3.7.7

Development testbed:
http://markzip.com/category/we-distr...judith-kerman/

I want my excerpts to contain the PayPal button which is towards the top of each post, but WP is skipping right over it and going on to the rest of the excerpt text.

I have told atahualpa not to strip the <form> tag and the <a> tag. No luck.

Figuring that the button was an image, I told atahualpa not to strip the <img> tag, but then it gave me the full size image associated with the post in addition to the thumbnail size featured image (which the one I like)

So, how do I get the excerpts to pull in the PayPal button?
  #4  
Old Jul 6, 2012, 02:45 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
how are you adding the paypal button? is it part of the post or a plugin?
is the excerpt a manual excerpt or built automatically by atahualpa?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 6, 2012, 03:50 PM
markzip
 
60 posts · Jan 2010
how are you adding the paypal button? is it part of the post or a plugin?
>>>>>>>>> part of the post. i am migrating very old pages from an old site, but the buttons are up to date, so i'd like to minimize the work and re-use them

is the excerpt a manual excerpt or built automatically by atahualpa?
>>>>>>>> auto-built

For instance, the "category" page at
http://markzip.com/category/we-distr...judith-kerman/

contains excerpts of all posts categorized as "judith kerman". post such as:
http://markzip.com/plane-surfaces-pl...-johnny-duran/
http://markzip.com/3-marbles-judith-kerman/
http://markzip.com/mothering-dream-o...judith-kerman/
  #6  
Old Jul 6, 2012, 05:25 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What do you have the excerpt length set to?
where is the paypal button located?

If the excerpt lenght is set to ...say 55 and the code for the paypal button is at word 60, it won't show up. A word is anygroup of characters seperated by a space so the line
HTML Code:
the frog is <a href="http://yourdomain.com">green </a> and hops
is 8 words
HTML Code:
the
frog
is
<a href="http://yourdomain.com">green 
</a> 
and 
hops
so depending on where the paypal code is is might not be part of the excerpt.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jul 6, 2012, 06:41 PM
markzip
 
60 posts · Jan 2010
Even with the excerpt length set to something ridiculous like 400 word it just sails over the PayPal button code.

Here is an example of code from a post:
HTML Code:
Plane Surfaces / Plano de Incidencia - Judith Kerman <em>translated by Johnny Durán</em>

Bilingual (English/Spanish).
Paper, perfect bound, 134 pp
$15 plus s&h 
2002, CCLEH (Santo Domingo)
ISBN 0-932412-20-3
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="PayPal1@mayapplepress.com"><input type="hidden" name="item_name" value="Plane Surfaces/Plano de Incidencia, by Judith Kerman"><input type="hidden" name="item_number" value="0-932412-20-3 "><input type="hidden" name="amount" value="15.00"><input type="hidden" name="no_note" value="1"><input type="hidden" name="currency_code" value="USD"><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"><input type="hidden" name="add" value="1">      </form>

You can also call us and use your credit card

<hr>

Plane Surfaces
by Judith Kerman...
But when it is pulled into the "category" page as an excerpt it gives this:

HTML Code:
<div class="post-13 post type-post status-publish format-standard hentry category-judith-kerman category-poetry category-translations category-women odd" id="post-13">
						<div class="post-headline"><h2>				<a href="http://markzip.com/plane-surfaces-plano-de-incidencia-judith-kerman-translated-by-johnny-duran/" rel="bookmark" title="Permanent Link to Plane Surfaces / Plano de Incidencia – Judith Kerman translated by Johnny Durán">
				Plane Surfaces / Plano de Incidencia – Judith Kerman translated by Johnny Durán</a></h2></div>				<div class="post-bodycopy clearfix">                <a href="http://markzip.com/plane-surfaces-plano-de-incidencia-judith-kerman-translated-by-johnny-duran/"> <img width="98" height="150" src="http://markzip.com/wp-content/uploads/2012/07/PSCover-98x150.jpg" class="attachment-post-thumbnail wp-post-image" alt="Plane Surfaces / Plano de Incidencia - Judith Kerman translated by Johnny Durán" title="Plane Surfaces / Plano de Incidencia - Judith Kerman translated by Johnny Durán" /></a>
				<p><a href="http://markzip.com/wp-content/uploads/2012/07/PSCover.jpg"></a>
<p class="wp-caption-text">Plane Surfaces / Plano de Incidencia – Judith Kerman translated by Johnny Durán</p>
<p>Plane Surfaces / Plano de Incidencia – Judith Kerman translated by Johnny Durán</p>
<p>Bilingual (English/Spanish). Paper, perfect bound, 134 pp $15 plus s&h 2002, CCLEH (Santo Domingo) ISBN 0-932412-20-3</p>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> </form>
<p>You can also call us and use your credit card</p>
<p>Plane Surfaces by Judith Kerman</p>.....
As you can see, it is pulling the start of the form, but not the rest.

I have tried telling Atahulapa to not strip <input type> tags, but that does not help.

I tried telling it to not strip <input type="hidden">, but when I went to save Atahaulpa cleared the field and just left <input type= in the field.

I suppose I could try to figure a way to generate simple text links to the appropriate Paypal place, but the client is very fond of the buttons, and I can understand why
  #8  
Old Jul 6, 2012, 07:34 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
in the do not strip these tags, you should have
HTML Code:
<form><input><a><p>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jul 6, 2012, 09:24 PM
markzip
 
60 posts · Jan 2010
Thanks. As always, it's difficult to see the forest for the trees.

Bookmarks

Tags
exerpt, formidable plug in

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have excerpt length question... ARealpolitik Atahualpa 3 Wordpress theme 6 Jan 20, 2012 08:26 AM
Excerpt Length Not Working Properly nettaP Excerpts, Read more, Pagination 2 Jun 22, 2011 02:47 PM
BUGFIX: 3.4.9 Excerpt length not working properly? Kadin Excerpts, Read more, Pagination 14 Oct 28, 2010 09:38 AM
Excerpt length Per Lund Excerpts, Read more, Pagination 5 Sep 21, 2009 09:54 AM
Excerpt length doesn't work... utkukaynar Excerpts, Read more, Pagination 2 Sep 10, 2009 07:14 PM


All times are GMT -6. The time now is 02:41 PM.


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