Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am constructing a theme for Wordpress that uses PAGES for products for sale on a site. This Product will have properties like DESCRIPTION, PRICE that will be stored to custom fields.

I was wondering if it is possible to retrieve the values from the custom fields and forward them to a form which is stored in another wordpress page. This form is a request for quotation form that the user fills out.

Thank you.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

When generating the form all you need is the post id of the product pages and you can use get_post_meta function to retive the information about that product , so basically you just need to pass the product post id. eg:

$price = get_post_meta($product_post_id,'price',true);
share|improve this answer
    
Thanks. I'll test it out :) –  Chris Jun 7 '11 at 14:16
    
Is it possible to that with Contact Form 7? Passing the $price variable to the form? –  Chris Jun 9 '11 at 5:01
    
read your reply here. I think that again answers my question. wordpress.stackexchange.com/questions/15926/… –  Chris Jun 9 '11 at 5:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.