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)
-   -   [SOLVED] Excerpt length and content problem (http://forum.bytesforall.com/showthread.php?t=17267)

katherine_srcm Apr 9, 2012 05:39 PM

[SOLVED] Excerpt length and content problem
 
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?

juggledad Apr 9, 2012 06:12 PM

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.

markzip Jul 6, 2012 01:46 PM

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?

juggledad Jul 6, 2012 02:45 PM

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?

markzip Jul 6, 2012 03:50 PM

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/

juggledad Jul 6, 2012 05:25 PM

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.

markzip Jul 6, 2012 06:41 PM

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

juggledad Jul 6, 2012 07:34 PM

in the do not strip these tags, you should have
HTML Code:

<form><input><a><p>

markzip Jul 6, 2012 09:24 PM

Thanks. As always, it's difficult to see the forest for the trees.


All times are GMT -6. The time now is 04:07 AM.

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