Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   postformat.php question (http://forum.bytesforall.com/showthread.php?t=19142)

lightbringer Dec 16, 2012 02:27 AM

postformat.php question
 
Hello

I use the bfa_excerpt(120, "...') function to display the first 120 words of every post on the main page. One of my posts has an image in it, but it is not shown at all on the main page.

What do I need to do/change to display the image along with the excerpt?

Thank you!

juggledad Dec 16, 2012 03:56 AM

there already is an request for this: RFE 113-03: allow the ability to not strip HTML when using bfa_excerpt()

lightbringer Dec 17, 2012 12:25 AM

That is a closed thread... so this means there is no way of achieving it? In my opinion it is important to be able to display images on the main page with the excerpts.

If this is not fixed soon I may have to look for a different theme :-( such a pity, it would have been a cool theme.

juggledad Dec 17, 2012 04:41 AM

that thread is closed because it is an request for enancement - not a issue thread

You can change the 'bfa_excerpt(...)' to 'the_excerpt()' and add an <img...> to the manual excerpt and it will be displayed.

lightbringer Dec 19, 2012 02:38 AM

Can you please elaborate what do you mean by "the manual excerpt"???

I changed the postformat.php to contain

<?php the_excerpt(); ?>

and the functions.php to contain

function bfa_excerpt_length( $length ) {
return 125;
}


Now the post in question has an <img> elemet as below

<img alt="Anger..." src="https://farm3.staticflickr.com/2215/2323959627_84b7023f77.jpg" width="500" height="438" />

Still the image is not displayed on the main page.

Also there is an extra "read more" link at the end of the excerpt as well as below it...

Thank you for your assistance!

juggledad Dec 19, 2012 04:49 AM

Quote:

Can you please elaborate what do you mean by "the manual excerpt"???
go to dashboard->posts->all posts->edit a post now look for the section labeled 'Excerpt' (if you don't see it, click on teh 'Screen Options' tab at the top right and check the 'Excerpt' box)

this is where you can manually enter an excerpt.

lightbringer Dec 20, 2012 01:23 PM

Thank you for your solution!
Can't wait to see an easier implementation as I had to also comment out the section of the functions.php file as there were two "read more"s displayed under the excerpt...


All times are GMT -6. The time now is 10:20 AM.

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