Viewing 2 replies - 1 through 2 (of 2 total)
  • You can echo out any data saved in post meta fields by using:

    get_post_meta( $post_id, $key, $single );

    In your case, to output the “markup” (As commented in code above):

    echo get_post_meta($post_id, 'ayg_mark_up', true);

    See here for documentation on get_post_meta();

    Moderator bcworkz

    (@bcworkz)

    You said the data is “stored to my rate table”. I assume there is more rate information than the price and markup stored in post meta, and this data is in some kind of separate, custom table.

    You’ll need to use $wpdb methods to access your custom table. Exactly how that is done depends on how your rate data relates to the product posts.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘metadata database’ is closed to new replies.