Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Print specific values stored in a post meta array

function get_value( $order, $parameters ) {
    $order_id = Compat\Order::get_id( $order );
    global $wpdb;

    $ref_multibanco = get_post_meta($order_id,'_stripe_multibanco', true); // select array

    $text_print="Ent: ".$ref_multibanco["entity"].'<br>Ref: '.$ref_multibanco["reference"].'<br>Value: '.$ref_multibanco["amount"];

    return $text_print;
}

Related Posts:

  1. update_post_meta from data in multidimensional array created from a form
  2. update_post_meta() with a modified array?
  3. How to get update_post_meta output to include string length
  4. Run a check for multiple meta key values
  5. Retrieving multiple values to the Post Meta (using an array)
  6. Update post meta does not serialize array
  7. How to use json_decode a post_meta value? [duplicate]
  8. Random element in get_post_meta array
  9. update_post_meta adding to array instead of replacing value
  10. Add Array record to Meta Post
  11. Multiple meta key and value search in the query
  12. How i can extract data
  13. Plugin Shortcode value in post
  14. update_post_meta array issues
  15. Update Post Meta for Arrays — Remove/Replace Single Value from Multi Dimensional Array
  16. How do I retrieve a value from a multi – dimensional array using get_post_meta? [duplicate]
  17. How to match data in multidimensional array of post_meta_data?
  18. Multipe array in meta_input
  19. How to only display posts whose meta_value field is not empty?
  20. How to extract data from a post meta serialized array?
  21. Nice way to print_r arrays
  22. Why does get_users suddenly return duplicates?
  23. Dealing with Many Meta Values, 30+
  24. When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
  25. How can merge two arrays values in one array and save in database
  26. WordPress: How to use post_class() in an echo
  27. How to get all term meta for a taxonomy – getting term_meta for taxonomy
  28. Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
  29. Is it possible to store arrays in a custom field?
  30. How do I pass an array as an argument to a WP-CLI command?
  31. How to update single value in multi dimensional Post Meta?
  32. Updating wp_options with an array on save_post results in duplicated entries
  33. Passing a variable into Contact Form 7 [closed]
  34. WordPress Admin Panel search posts with custom post meta values along with title
  35. Comma seperated list of ID’s as an array?
  36. How to store post meta in an array?
  37. WP Meta Query for some meta (array) values
  38. post__in works but also prints the word Array
  39. Make Selected Mutiselect Items “selected”
  40. How to break meta values into different items and avoid duplicates?
  41. Compare two meta key values against each other inside the get_posts array?
  42. settings api store multiple array
  43. if is_singular array not working as expected
  44. How do I update a specific object in an array, in user meta?
  45. Get posts id in array by meta value and key
  46. Automatically adding meta data to posts or multiple query help
  47. How to save array of datas in option page by setting api?
  48. Sort a custom post type array numerically
  49. How to add day number and initial to my post graph?
  50. How to validate register settings array
  51. Job of meta_key meta_value fields in database tables
  52. How to check an array of $curauth fields?
  53. Problem with wp_update_post
  54. Replace text inside a huge multidimensional array
  55. order by multiple meta_keys?
  56. How to get the total number of meta_values based on a custom post type?
  57. How to use IN array properly in WordPress?
  58. Get specific custom field keys from a post and put into an array
  59. My theme saves their custom post type’s metadata as a serialized array, how to access the keys?
  60. WordPress Plugin Dev: Using array for WP options
  61. WP_POSTMETA – What do these values mean inside the data structure?
  62. Only a part of array is stored in transient – what could be causing this?
  63. How to wrap meta values seperated by comma in ? [closed]
  64. Return array keys and values
  65. How pass a 0 in $atts?
  66. get_*_meta doesn’t always return an array
  67. How to save data of an input field to an array
  68. Echoing a variable inside a function
  69. Stuck with a Custom Field Check box Array
  70. How do I create an archive page as a including metadata?
  71. Unset field from an array not working as expected
  72. How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
  73. Compare with WP Meta Query
  74. How can I convert postmeta from unserialized to serialized?
  75. How to Translate a string of an array inside a class?
  76. How to pass conditional array to wp_localize_script
  77. What WordPress function to use to get meta value by using meta keys?
  78. Modify foreach loop for social sharing links?
  79. Combine get_page_by_title to exclude pages from wp_list_pages
  80. Plugin settings page checkbox not saving – one options array with sub array
  81. Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
  82. Selecting and outputting results from DB with an array
  83. Struggling with array and foreach loop
  84. Customizer Settings in Arrays
  85. Sort alphabetically by custom field
  86. Saving zero as meta value
  87. Custom order for Mysql array
  88. WordPress i18n in Array throws Error
  89. How to decipher the following array
  90. Save meta box values as an array to wp_postmeta
  91. How to display line breaked meta values in table?
  92. Post meta as array looks like string instead of array
  93. Query posts according to specific post meta values
  94. Grouping posts by a custom meta value
  95. Organizing and grouping an array by year
  96. Time & Date on Post – Time Ago Custom Function
  97. array_filter warning – wp-includes/post.php line 3148
  98. Output meta into arrays
  99. Get array of metakey in all posts
  100. Hide sidebar if post_type is in array
Categories array Tags array, meta-value, post-meta
Export postmeta (custom fields)
How do I add thumbnail to current Prev and next buttons in posts?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress