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 » Montezuma Theme »

postformat.php question


  #1  
Old Dec 16, 2012, 02:27 AM
lightbringer
 
5 posts · Dec 2012
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!
  #2  
Old Dec 16, 2012, 03:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there already is an request for this: RFE 113-03: allow the ability to not strip HTML when using bfa_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 Dec 17, 2012, 12:25 AM
lightbringer
 
5 posts · Dec 2012
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.
  #4  
Old Dec 17, 2012, 04:41 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 19, 2012, 02:38 AM
lightbringer
 
5 posts · Dec 2012
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!
  #6  
Old Dec 19, 2012, 04:49 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"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
Replacing bfa_excerpt() with the_content() in postformat.php causes mismatch Jonathan Harford Montezuma Theme 5 Jan 7, 2013 02:16 PM
Question about how much to pay geruby ThemeFrame Presales 1 Jun 2, 2011 04:25 PM
SEO Question craigtran Forum How-To 5 Mar 19, 2010 01:14 PM
wow!!!! another TF question wheresnifty ThemeFrame Presales 3 Feb 15, 2010 04:05 PM
CSS Question lmilesw Atahualpa 3 Wordpress theme 1 Nov 30, 2009 03:30 AM


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


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