can you do this:
get_post_meta(get_the_ID(), '', true);
print_r($meta);
or
get_post_meta(get_the_ID(), 'my_custom_field');
print_r($meta);
the first will pull all custom post type on the current post, and the second restricts to the field. You should get an array and then you’ll know which item in your array is the field title you’re looking to pull. then you can use that to return title
Related Posts:
- Add custom fields after post/page title
- How to display custom field in woocommerce orders in admin panel?
- Issues with title-tag and document_title_parts
- Programatically add options to “add new” custom field dropdown
- Import WordPress XML File from Within Functions.php
- Define custom Page Template without its own .php file
- Does hooking into the same action multiple times drain memory?
- How to influence the information displayed on widget inside wp-admin
- Get a list of all available fields in the User Profile
- Extract image from content and set it as the featured image
- Is there a hook or function I can use to display all theme files being used on a current page?
- Issue with get_theme_mod returning a blank value instead of the saved value
- Add action hook conditionally – only when home.php in use
- Show modified time if post is actually modified
- why doesnt is_home() work in functions.php
- How to create thumbnails for PDF uploads?
- Enabling shortcodes for custom fields
- Implementing DNS Prefetching with WordPress
- Help me to understand wp_header() and wp_footer() functions
- How can I tell if I’m on a login page? [duplicate]
- Is there a way to prevent a function/method from being called outside a specific hook?
- Auto log in hook is requiring a page refresh
- Possible to hook into Media Library preview File column and use a custom image?
- Function not working inside of a function in functions.php
- Adding code before post title with the_title produces weird results
- Add back in child theme what the parent theme removed with remove_action
- Programmatically add Yoast meta description after post save
- Writing a function to detect an event
- Insert Address fields into function
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- WordPress wraps span tags into p tags
- How to make custom comment fields required
- Changing where my author box is printed
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Add Adsense code between job listings – wp job manager plugin
- How add body_class from wp_termmeta
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Sort and display pages with specific custom field (not tag)
- update_post_meta is Updating with two page id
- shorthand syntax for custom fields
- Fill empty custom field with other custom field
- Replace admin header logo with an image
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- is_home() not working in functions.php file
- How to conditionally add a widget via a hook in functions.php
- Perform function on publish AND save (not just save)
- How to place a div inside a function that creates a div
- Changing the text of Upload/Insert on Posts and Pages Screen
- Filter for replacing the WP_query object for a given category
- How to add or delete default value theme options while activate and deactivate theme
- How to Display WooCommerce Product Price in WooCommerce Archive
- How to change text color depending on the number value (Using javascript)
- WordPress comment processing . Default unapproved comments detection before posting
- Warning at top of website & top menu gone
- wp_set_object_term via js btn frontend
- Populate Product Regular Price with a calculated ACF Field Value
- Does hook have an effect on increasing the page load?
- Save_post – Warning: Cannot modify header information
- What is the earliest Hook a Script can use?
- Populate acf-field, depending on block name
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- custom error message for empty username and password using authenticate filter not working
- How Do I Unhook This Parent Theme Function?
- Get post_author email for Zapier Integration
- How do I get the value of a current user’s custom field?
- Calling hooks in functions
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- Create New User Custom Field not Saving
- Creating a “Related Meta” type field?
- How would I correctly implement a new if statement in a child functions file?
- Hide empty custom field
- How to add custom column into custom post, when field is select
- How can I stop the hook from breaking the login/logout function?
- True email confirmation for registration (keeping unvalidated users from user table)
- WordPress hooks to call a function inside a construct
- How To Show Shortcodes In WordPress Custom Fields?
- WordPress undefined function error on using add_action() in functions.php
- How to add function to custom fields when page/post has a password?
- How to exclude posts with empty and non-existent relational custom field with meta_query?
- Post date on Custom field
- Dynamically generated Navigation Diagram using Custom Fields
- Define an extra field for all pages (with no plugin?)
- update_post_meta not working in function
- Adding custom field in menu options [duplicate]
- Function the_content
- save_post hook – headers already sent?
- Init hook for header send
- How to display data from custom fields in my custom shortcode?
- Syling Custom Fields echo’s from from functions.php
- Force resize for all video content
- Unhook the comment form in Buddypress
- Why wp_ajax hooks doesn’t work?
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Why functions metaboxes is causing White Screen in Admin [closed]
- How do I add functionality to images?
- Adding and updating repeating custom field meta data
- How to hook wp_mail to add a custom email as BCC for each sent email?
- How to automatically create a custom field when a post is published?