WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.