• I’m was make a function, which passes an input field for each variable products.

    Look into this link: https://pastebin.com/d4abHY8H <- Here is the code I work for.

    Then I need to pass variables from wp_postmeta with a key ‘addconf’ to variable $add_var, who you can see in pastebin. I can’t make a loop for shown data from this database.

    Thanks for your time and response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Vol Markula

    (@dawr)

    And if I passing variable for custom loop foreach, using by $product->get_available_variations() >=====via=====> get_post_meta( $variations[ ‘variation_id’ ], ‘addconf’, true ), all fine and i can see list my custom data.

    Thread Starter Vol Markula

    (@dawr)

    Resolved. Must be $variations[$term->slug]

    • This reply was modified 5 years, 8 months ago by Vol Markula.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to make a function to pass a variable from wp_postmeta’ is closed to new replies.