There’s the get_post_meta()
function to retrieve those data.
So basically, you’d write a function in your functions.php file (or in a custom plugin – take “Hello Dolly” as example) and hook it.
<?php
/* Plugin Name: (#66495) »kaiser« Headway Title Button */
function wpse66495_headway_title_button()
{
return printf(
'<div class="title-btn"><a href="https://wordpress.stackexchange.com/questions/66495/%s" alt="https://wordpress.stackexchange.com/questions/66495/%s"><img src="%s /></a></div>'
,get_post_meta( get_the_ID(), 'meta_key_link_url', true )
,get_the_title()
,get_post_meta( get_the_ID(), 'meta_key_thumb_url', true )
);
}
add_action( 'headway_after_entry_title', 'wpse66495_headway_title_button' );
Related Posts:
- Add options to featured image
- post meta data clearing on autosave
- Assign category using custom field?
- What WordPress function to use to get meta value by using meta keys?
- Default Custom Field Value Automatically Update
- Prevent custom field from being updated after first publish
- How to change text color depending on the number value (Using javascript)
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- Creating a “Related Meta” type field?
- How to echo the translated custom field?
- update_post_meta not working in function
- Adding and updating repeating custom field meta data
- Programatically add options to “add new” custom field dropdown
- Import WordPress XML File from Within Functions.php
- Does hooking into the same action multiple times drain memory?
- How to influence the information displayed on widget inside wp-admin
- Is there a hook or function I can use to display all theme files being used on a current page?
- Implementing DNS Prefetching with WordPress
- Help me to understand wp_header() and wp_footer() functions
- How can I add an extra WooCommerce hook
- Get updated meta data after save_post hook
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Remove Page Title from Static Frontpage
- How to override WordPress registration and insert an auto-generated username?
- Set default options for inserting media
- Authors details such as social media links, emails etc → Is this Meta or something else?
- How to hook into the quick edit action?
- update_post_meta for custom field not working upon form submission
- Is it possible to be more page/post specific with admin_enqueue_script?
- How can update custom meta for all posts
- WooCommerce add_action hook results in 500 error
- Checked() showing up twice in custom fields
- Convert User ID’s to User Names in a single.php file
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Gravity Forms field entries into wp_query loop [closed]
- Post thumbnail relative link and HTML modify
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Which action hook to use for function?
- Change size and crop medium_large images
- Auto delete post if certain custom field data is empty
- Inserting a functions output after the content
- Modify a function without editing template
- Don’t delete a page if it holds users
- Problem only while using require_once() within functions.php
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- get current date + 90 days and checking every day
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Change label for registration Fields
- Custom Attachment Caption Fields
- Footer disappears when using the_content ( )
- Registration Hooks don’t appear to be working
- Why does re-using this function not work? [closed]
- Pass parameter to hooked function using custom page template
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- Is my code correct to enqueue CSS on a specific page?
- Can’t properly set the_title add_filter to show short_URL
- (Woocommerce) Order by price when entering specific category
- Hide custom fields when empty
- Possible to hook into Media Library preview File column and use a custom image?
- Adding code before post title with the_title produces weird results
- Programmatically add Yoast meta description after post save
- 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
- update_post_meta is Updating with two page id
- 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)
- Changing the text of Upload/Insert on Posts and Pages Screen
- How to add or delete default value theme options while activate and deactivate theme
- Conditionally run function based on custom meta value?
- Warning at top of website & top menu gone
- How to add custom metakey to shop_order page’s searching function?
- wp_set_object_term via js btn frontend
- Does hook have an effect on increasing the page load?
- What is the earliest Hook a Script can use?
- blank page with wp_get_attachment
- Calling hooks in functions
- How would I correctly implement a new if statement in a child functions file?
- How to add custom column into custom post, when field is select
- Remove post from latest posts after a month only with certain tag
- True email confirmation for registration (keeping unvalidated users from user table)
- How To Show Shortcodes In WordPress Custom Fields?
- WordPress undefined function error on using add_action() in functions.php
- Return ACF Field value function
- Post date on Custom field
- How To Get WordPress Categories Last Update Date?
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Init hook for header send
- How to display data from custom fields in my custom shortcode?
- update_post_meta after form is submited
- Force resize for all video content
- Unhook the comment form in Buddypress
- Display post_meta-by_key on product catalogue
- How do I add functionality to images?
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Change Post status based on custom field date +1 day
- delete_term is not working properly with add_action()