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

custom filed from post in the side bar

If it’s a single post or page, you can just pass the global $post->ID:

echo get_post_meta($post->ID, 'fb_name', true);

Related Posts:

  1. How to get custom post meta using REST API
  2. What is “meta_input” parameter in wp_insert_post() used for?
  3. The “_encloseme” Meta-Key Conundrum
  4. Individual Widgets per Page
  5. Using get_post_meta with new_to_publish
  6. Can I count the number of users matching a value in a multiple value key?
  7. Auto sort the wp-admin post list by a meta key
  8. Allow user to create instances of custom field
  9. Is there a hook / action that is triggered when adding or removing a post thumbnail?
  10. Get custom field values into the sidebar/widget?
  11. Add multiple images to a page sidebar
  12. Get updated meta data after save_post hook
  13. Save HTML formatted data to post meta using add_post_meta()
  14. Ordering posts by anniversary using only day and month
  15. How to break meta values into different items and avoid duplicates?
  16. ajax delete value from custom field array
  17. Save attachment custom fields on front end
  18. How to use pagination with get_post_meta
  19. Custom fields: In what order are they saved into the DB?
  20. Transition from (classical) serialized custom meta field to (gutenberg) rest enabled meta
  21. Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
  22. Custom field value based on other custom field values
  23. Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
  24. How to display Meta Field Value?
  25. MySQL query to set wp_postmeta using term_taxonomy_id value
  26. How to Validate Post Meta type/extension (Video File Image File etc)
  27. Get all meta keys assigned to a post type
  28. Custom Meta Box not Saving in Posts with Gutenberg Editor
  29. Combine multiple custom field values into single value
  30. How do I use wp_query for WordPress search?
  31. Nav Menu – Add class based on meta keys
  32. How to wrap meta values seperated by comma in ? [closed]
  33. Bulk remove post meta
  34. How to create html block to display extra information on woocommerce single product page
  35. Can’t get post ID using wp_insert_post_data
  36. Unique Post Meta Values
  37. Run a check for multiple meta key values
  38. WordPress Rest API to call page data associate with custom meta
  39. Add post meta fields, when creating a post using WordPress’ REST API
  40. Custom Field Values not updating unless I click “Update” twice
  41. Hide custom meta data if empty
  42. How to create a shortcode to print specific values stored in a post meta array?
  43. Add custom field to all posts in specific post_type
  44. Button inside Custom Meta Box triggering the Update Button
  45. How to load an assets based on custom field value?
  46. Custom WP_Query for WordPress Search Results with meta_query
  47. How can you include custom post meta in search without calling each key?
  48. How Do I Display A Custom Field In The Sidebar Of All My Pages?
  49. Can I access a post meta field before the loop?
  50. wrap text around custom fields array
  51. How can I modify RSS item titles to be either the title or a custom meta field?
  52. Avoiding ACF get_field and returning to core WordPress function
  53. Get all the posts where meta field with multiple choice has several values checked
  54. wordpress custom loop ascending descending posts by custom field
  55. Move Title and the Content WYSIWYG editor position
  56. Hide custom fields when empty
  57. How do i get the attached images with custom value checked?
  58. Save all the post tags inside a custom field
  59. How add multiple wp_editor_box to new post
  60. Update post meta custom field using block editor
  61. Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
  62. Display posts with empty custom field
  63. Get YouTube video id from url in a custom field
  64. Related query shows same image in loop
  65. Why am I getting a “Call to member function format() on a non-object” error?
  66. Can’t Output get_post_meta?
  67. Modify custom field from front end
  68. Footnotes in custom fields
  69. Create a new custom field for all posts based on current custom field
  70. wordpress get_post_meta / the_meta to output custom field value
  71. Custom Query: query by post custom meta data
  72. get_post_custom_values problem, please help
  73. update_post_meta not working well
  74. How can I change author of posts to the value of one of the custom field of the posts?
  75. Custom meta fields and meta keys
  76. How to add a post’s view count into the WordPress API response
  77. Can’t set custom meta fields for a post
  78. Saving Custom Field that includes Quotation marks
  79. Post meta data not showing in frontend, until hitting ‘update’ button
  80. searching by keywords in post’s metas or pagination links problem
  81. update meta field value after
  82. Query Posts based on custom field value
  83. Echo out custom fields in comments
  84. Display Data From This Custom Media Upload Meta Box?
  85. Save values generated via API as custom meta fields
  86. Query postmeta values, and return multiple post_titles for common meta value
  87. When post is updated, custom metadata in text area field is overwritten
  88. Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
  89. update_post_meta not working in action hook
  90. Custom Field: Display only if a specific key is selected outside the loop
  91. When editing a post with a custom meta box the values aren’t displaying correctly
  92. Hard Define Custom Field Value
  93. add_post_meta insert null value into Database
  94. How do i output images from URL’s added to the same custom field key
  95. Retrieving custom field as shortcode
  96. add multiple values (array) to post meta_input
  97. save all acf options in one meta_value [closed]
  98. WP Query Args – search by meta_key or title
  99. Search for meta_query does not return any result if combined with title
  100. Block Editor – Meta values not saved, meta changes to empty array on update
Categories custom-field Tags custom-field, post-meta, sidebar
Custom Post Type Rewrite Throws Headers Sent Errors
Related “custom post type” using “custom taxonomy”

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