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! |
there already is an request for this: RFE 113-03: allow the ability to not strip HTML when using bfa_excerpt()
|
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. |
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. |
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! |
Quote:
this is where you can manually enter an excerpt. |
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 02:33 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.