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 » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Using a custom field within an excerpt... or trying to


  #1  
Old Jan 4, 2011, 08:29 PM
arthurmild
 
50 posts · Aug 2010
Cape Town
Hi

I am moving a large blog site over to Atahaulpa as part of a re-design.

The old site theme uses a custom field (image) within the excerpt. I presume it is part of the theme

old site

new site


My question is where ( using ATO ) can I put my code to achieve the same result

i.e

"get the custom field(image)", "echo the excerpt text", "display the (styled in ATO excerpts) Read More"


Code:
<img src="/wp-content/uploads/%meta('image')%" alt="%post-title%" />
Is what I thought might work to get the image -

is this correct ?

where should I be putting it ?


One last thing - the excerpt text is written by the author for each post and entered via the dashboard (it is not a generated snippet)


Thanks in advance
  #2  
Old Jan 4, 2011, 09:02 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Use the featured image function (right column usually near the bottom) and the excerpt field for what shows up on the excerpt page.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jan 5, 2011, 02:27 AM
arthurmild
 
50 posts · Aug 2010
Cape Town
Thanks for the reply,



Why does the image not appear in the excerpt in my Atahaulpa test version of this site, as it does appear in the in the current existing theme ?


My problem is that I can't find the file in either template which is configuring these excerpts.

My secondary problem is that I know from experience here that I should not even be looking for it , because we should be using ATO to configure everything, right ?

The current site has hundred of posts already written which (I think) are using an image custom field to define the image in the excerpt.




So what should I be doing to encourage Atahaulpa to display the image in excerpts.
  #4  
Old Jan 5, 2011, 02:31 AM
arthurmild
 
50 posts · Aug 2010
Cape Town
Additional comments:

Sorry - I looked at 'featured image' as advised, but this only gave me the opportunity to add an image.

I want to grab the existing images which are used in excerpts an ddisplay them in my atahulapa theme

it also occurs to me that I may be making a big assumption about the custome fiel dna dthe images are being sourced from elsewhere.

Unfortunatly blog author is uncontactable currently
  #5  
Old Jan 5, 2011, 04:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
by default all html is stripped from an excerpt (this is a wordPress default) so Atahualpa does the same thing. There is an option in the 'excerpt' section of the theme to 'do not strip' certain HTML code that you put in. If you don't have <img> in there, then no images 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

Bookmarks

Tags
custom field, custom fields, excerpts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show custom field in kicker - only IF field value exists jaxon Center area post/pages 13 Feb 6, 2013 01:11 PM
Custom Field Values UnionBreeze Post-Kicker, -Byline & -Footer 3 Dec 13, 2010 06:29 PM
Button with Custom Field Xethon Sidebars & Widgets 0 Sep 17, 2010 04:08 AM
Custom field image with custom field link mbastos Atahualpa 3 Wordpress theme 1 Jul 1, 2010 08:17 AM
[SOLVED] post - custom field isa Forum How-To 0 Sep 17, 2009 02:44 PM


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


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