Post meta in post archive?

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Re: Post meta in post archive?

Postby Martinl276 » 08 May 2012, 09:59

Hi Sayontan

I went into the custom/post-header.php file, but the only code displayed was
Code: Select all
<?php
/**


Is that correct? Please can you help me with where I should add your code recommendation
Code: Select all
echo get_post_meta($post->ID, 'your_field_id', false);


Thanks
Martin
Martinl276
 
Posts: 37
Joined: 27 Mar 2012, 05:24

Re: Post meta in post archive?

Postby Martinl276 » 10 May 2012, 12:01

Hi Sayontan

Please can you tell me exactly how to insert this code into post-header.php?

Thank you so much in advance
Martin
Martinl276
 
Posts: 37
Joined: 27 Mar 2012, 05:24

Re: Post meta in post archive?

Postby sayontan » 10 May 2012, 12:17

That file doesn't appear to be complete. I don't believe there is an issue with the theme's copy at your end, or your site would have broken. Just make sure you copy it over correctly.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Post meta in post archive?

Postby Martinl276 » 10 May 2012, 12:32

Hi Sayontan

My apologies, I can see all of the file (only two lines are visible, but can be scrolled to see the rest). I am just unsure exactly where to insert this code in post-header.php:

Code: Select all
echo get_post_meta($post->ID, 'wpcf-price', false);


Thanks
Martin
Martinl276
 
Posts: 37
Joined: 27 Mar 2012, 05:24

Re: Post meta in post archive?

Postby Martinl276 » 13 May 2012, 09:33

Hi Sayontan

Please ignore my previous messages, I have now found out how to view the cutom/post-header.php file. Please can you now advise me exactly where on the custom/post-header.php file I enter this code:

Code: Select all
echo get_post_meta($post->ID, 'wpcf-price', false);


Thank you very much for your help so far, I feel that I am almost there but really need your help to finish this. Thanks in advance!

Martin
Martinl276
 
Posts: 37
Joined: 27 Mar 2012, 05:24

Previous

Return to Support Requests

Who is online

Users browsing this forum: ceveshile and 5 guests