get_the_author_meta()
returns the data for use in PHP. To display the
information instead, usethe_author_meta()
http://codex.wordpress.org/Function_Reference/get_the_author_meta
Your code does not echo
data even if it is present. Add an echo
or use the_author_meta
<?php if(get_the_author_meta('twitter') ): ?>
<a href="https://www.twitter.com/<?php echo get_the_author_meta('twitter'); ?>" target="_blank">Twitter</a></p>
<?php else: ?>
<strong>No website</strong>
<?php endif; ?>
Related Posts:
- Generate an Email address from that of the Post Author
- How is the author’s name given a different color?
- Get the author meta adds now
- Randomizing Post Links Outside of Loop – No Author or Date
- wpdb->get_var – count author posts, meta value
- Check For get_post_meta on Author Archive Page
- How can i set media attachments to the author of the post or page for already existed posts with attachments
- How to extract data from a post meta serialized array?
- How to save an array with one metakey in postmeta?
- WordPress is stripping escape backslashes from JSON strings in post_meta
- How we get_post_meta without post id
- What is the code to get the download link for a product in WooCommerce?
- Adding an assisting editor box to Post page
- Get Advanced Custom Fields values before saving [closed]
- Why am I getting an infinite loop with have_posts?
- How to store post meta in an array?
- get_post_meta / update_post_meta array
- update_post_meta() not working when used with WordPress action
- Get posts by meta value with date
- Identifying Importer Posts
- Get updated post meta on save_post action?
- How metadata API works?
- Delete post meta conditionally after save post
- Job of meta_key meta_value fields in database tables
- Post IDs missing on delete_postmeta action hook
- How to store Gutenberg ColourPicker RGBA as metadata
- Is it possible to update a post meta field through REST API if the format of it when registered is nested?
- Create a Metabox that behaves Like a Taxonomy Box
- Views count with time limit per IP
- Query 2 meta key values and a category
- trying to do if post meta !=0
- Trying to get file name
- order by multiple meta_keys?
- how to build (custom) stats for post views, per month
- get_post_meta pagination
- Removing Post Meta from Category Pages?
- Hey, I want the second options. get_post_meta()
- Update post meta in woocommerce order frontend
- echo image caption
- populate post meta in gravity forms [closed]
- Generate multiple goo.gl shortlinks for qtranslate bilingual blog
- How to display post view count by date, week and month?
- How can I filter posts when the meta_value is a serialize object?
- Get User Post if Private
- How to receive all the meta information of a post ?
- add_post_meta adds meta to one more different post
- Unknown characters added to meta data values
- Compare old meta with new post meta
- get_post_meta($post->ID) returns empty string when in preview mode of custom post type
- need to add add user names to the post for later retrieval or removal
- Trying to get property of non-object error using get_post_meta()
- Like & Dislike functionality using JavaScript
- update_post_meta not working in plugin
- get_permalink vs the_permalink
- Updating my Post when expiry date is past
- How to remove Date from Meta Description on SERP?
- How to display sql query fired by posts_where
- Unfiltered html with update_post_meta
- get meta value from page query
- why after saving meta value it’s saving all the values the one that i clicked?
- How does WordPress treats attachments metadata in post content?
- URL to Post Meta [closed]
- Retrieving post meta array (attachment)
- Stop `update_post_meta` from working each time page refreshes?
- get_post_meta in one post only
- Custom fields or something else
- wordpress multi user question
- Search post overlapping dates – meta_query with meta_key
- Post Publish date not display on Umaya Child themes
- How to merge the database results into single result?
- How can I update this array built from post meta data?
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- How to get the total of two meta values from different meta keys?
- How to update/add child posts meta whenever the parent post meta is updated?
- Get or set values in post meta
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- Display multiple meta_key/meta_values by single SQL query
- Using a comma instead of a pipe to separate metadata
- show user based on user_meta
- How do you sort the items in a custom taxonomy meta box?
- How Can I extract Image urls from post meta
- post_title in save_post action
- Getting meta content from get_next_post & get_previous_post
- How can I prevent the post_modified column in wp_posts from being updated?
- How to get pictures of the WordPress post
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- When importing posts to a new site if XML file has postmeta not setup on new server what happens?
- Get value from post meta array, and add it as a category
- get_post_meta image width for lazy load
- Access Serialized Post Meta Values
- Custom Fields help
- Does post-meta belong in header?
- WP-API : post_meta not updated… but have another entry
- How to get all the related ids without array?
- How to display Author Profile based on Custom field value
- Remove action of an external plugin after checking if custom post meta is set