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

Unable to Call More than One Meta Box Output

Your code will be like this

 if( have_posts() ):
  while( have_posts()): the_post();
    $txt_fld = get_post_meta( get_the_ID(), 'dbt_text', true );
    $txt_fld2 = get_post_meta( get_the_ID(), 'dbt_text', true );
  endwhile;
 endif;

echo $txt_fld;
echo $txt_fld2

like this way.

Related Posts:

  1. How to remove a metabox from menu editor page?
  2. Why is my custom meta box input not saving
  3. the_post_thumbnail() based on the Post ID
  4. How can update custom meta for all posts
  5. How to Display Image Meta underneath EVERY image in EVERY post
  6. Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
  7. Image media upload metabox
  8. Linking text within textarea of custom meta box
  9. Trying to retrieve post meta
  10. Show meta box only for default page template
  11. Illegal string offset in PHP function
  12. Why does this update_post_meta function not delete the custom field itself?
  13. How to store multiple custom meta box
  14. Warning: call_user_func() expects parameter 1 to be a valid callback, function
  15. Hide a div when a custom field is empty
  16. Post meta select input, if statement
  17. How to check post meta isset or not empty during publish/save post?
  18. Add a Metabox checkbox to the Page Edit screen of wp-admin , which only certain roles can see and Makes only certain roles able to Edit said page
  19. Checkbox doesn’t save inside metabox
  20. Dropdown category field inside repeatable metabox
  21. Create shortcode for metabox gallery
  22. How to add and subtract user meta values after post meta update
  23. Display metabox galleries on specific page template in admin editor
  24. Delete post meta by serialized meta value
  25. Unable to update the meta boxes with multiple fields
  26. WordPress AJAX load post metadata in modal
  27. Custom meta box save values issues – Deprecated: Function ereg() and more
  28. Display a post based on its metabox selection
  29. Postmeta not saving
  30. Help with my first Metabox helper class
  31. If custom field doesn’t exist, or exists and it’s true show title?
  32. Metabox Input Not saving
  33. get_post_meta no longer working
  34. Display custom meta box in my template file
  35. How to display the date under the post title?
  36. Warning: Illegal string offset ‘post’ and ‘page’
  37. How do I get a function to work in single.php
  38. How to get meta box labels?
  39. Display fields as values in array from external SQL DB
  40. Only Show Link If div Exists
  41. The text box have space character
  42. How to put a variable in a instance in the widget
  43. Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
  44. how to remove metadata from the posts of my blog?
  45. How can I create a list of page titles from custom meta values?
  46. Trying to establish connection to External Database
  47. Trying to remove post thumbnail with plugin
  48. How to select the contents in the text view textrea in wp_editor?
  49. Randomly Assign an Image’s Alt Text Based on Data From Post
  50. add_action shortcut?
  51. Passing the custom field values in the wp_get_current_user array function
  52. Using fwrite() and “a” appends multiple times instead of once
  53. How to output a PHP file values by shortcode?
  54. Showing content from one page on another
  55. How to style options page in dashboard?
  56. How to insert a single row to WP database table?
  57. Get date numerical and separate?
  58. Where in PHP do I move title and meta (date) to bottom of each blog section?
  59. WSoD being caused by this piece of code
  60. Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
  61. Converting HTML Template to WordPress Theme
  62. Set the background to a default image if there isn’t a specified “featured image”
  63. How to Arrange PHP Files to Allow for Multiple Types of Pages?
  64. Add a variable in functions.php and call it in single.php
  65. How to access global variable $menu inside a class function
  66. Calling directories to load in wordpress
  67. WordPress add post format support not working
  68. How to remove the cufon script from Dzonia Lite theme [closed]
  69. How to remove or change the “W” icon in “My Sites”?
  70. get a simple array of all of the term names that exist in all taxonomies
  71. Login/logout in header
  72. How to display posts by current user in a drop down
  73. Logged in user ID as post ID
  74. Loop with slider (slider not loading)
  75. How does WordPress insert Paragraphs in posts
  76. WordPress Access allowed to fewer pages till user logs in
  77. Show css depending on activity type in BuddyPress activity-loop [closed]
  78. only show container with next/prev links if they exist?
  79. How to combine wordpress_logged_in cookies in one cookie?
  80. Populate dropdown with Child Pages based on Parent Page chosen
  81. How can I remove a function that has been added to wordpress with add_filter?
  82. Change the WP Video Shortcode Output
  83. Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
  84. remove wp floating submenu in wp dashboard
  85. How to put “Read more” link in Custom Excerpt inside p tag?
  86. Two Different Links for Same Product – WooCommerce [closed]
  87. ACF: how do I get the fields and its values of a specific group?
  88. How to store data from multiple forms using ajax and php
  89. How to control WordPress image metadata (using Imagick)?
  90. How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
  91. Get value from shortcode to do something
  92. PHP 8, AJAX mail form to function.php doesn’t work
  93. How do I add custom bulk actions to multiple custom post types?
  94. Error when adding excerpt to the content through functions.php
  95. Automatically adding new post categories to menu
  96. Add data attribute to each li in menu
  97. Get post id in a function when edit/add a post
  98. Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
  99. How to check if a meta value has already been assigned to any user?
  100. How to complete two other input fields, completed the first
Categories PHP Tags functions, metabox, php, post-meta
Saving a post ID to use in a form elsewhere on website
How to save posts position on homepage after random function?

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