Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

postformat.php question


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 16, 2012, 02:27 AM
lightbringer
 
5 posts · Dec 2012
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
 
21,950 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
there already is an request for this: RFE 113-03: allow the ability to not strip HTML when using bfa_excerpt()
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
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
 
21,950 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
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
 
21,950 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #7  
Old Dec 20, 2012, 01:23 PM
lightbringer
 
5 posts · Dec 2012
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...

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 11:06 PM.


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