You can use is_single() in a conditional statement.
<?php if( is_single() ){ ?>
<ul>
<li class="Source"><a>source:</a></li>
<ul class="Source-Link">
<li><a href="https://wordpress.stackexchange.com/questions/121060/<?php echo get_post_meta($post->ID,"source-link', true); ?>" target="_blank"><?php echo get_post_meta($post->ID, 'source', true); ?></a></li>
</ul>
</li>
</ul>
<?php }?>
Be aware though that this will appear on any single page, meaning a single post page and a single page.
Related Posts:
- How to get custom post meta using REST API
- What is “meta_input” parameter in wp_insert_post() used for?
- The “_encloseme” Meta-Key Conundrum
- Using get_post_meta with new_to_publish
- Can I count the number of users matching a value in a multiple value key?
- Auto sort the wp-admin post list by a meta key
- Allow user to create instances of custom field
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- Get updated meta data after save_post hook
- Save HTML formatted data to post meta using add_post_meta()
- Ordering posts by anniversary using only day and month
- How to break meta values into different items and avoid duplicates?
- ajax delete value from custom field array
- Save attachment custom fields on front end
- How to use pagination with get_post_meta
- Custom fields: In what order are they saved into the DB?
- Transition from (classical) serialized custom meta field to (gutenberg) rest enabled meta
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Custom field value based on other custom field values
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How to display Meta Field Value?
- MySQL query to set wp_postmeta using term_taxonomy_id value
- How to Validate Post Meta type/extension (Video File Image File etc)
- Custom Meta Box not Saving in Posts with Gutenberg Editor
- Combine multiple custom field values into single value
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- How to wrap meta values seperated by comma in ? [closed]
- Bulk remove post meta
- How to create html block to display extra information on woocommerce single product page
- Can’t get post ID using wp_insert_post_data
- Unique Post Meta Values
- Run a check for multiple meta key values
- WordPress Rest API to call page data associate with custom meta
- Hide custom meta data if empty
- How to create a shortcode to print specific values stored in a post meta array?
- Add custom field to all posts in specific post_type
- Trying to update_post_meta function
- Button inside Custom Meta Box triggering the Update Button
- How to load an assets based on custom field value?
- get_posts in meta box dropdown not showing latest posts
- Limits, not all post are showen when querying for posts by view count
- Display Custom Meta Box Field Only If Value is Present
- Ordering posts by custom field named “date” in backend
- Unique meta_key with array value vs repeated meta_key with single values
- Allow only one post with specific meta value
- How to validate select field in post meta?
- How to display childrens custom fields?
- how to display custom fields of post on a web page
- How do I query the title (or handle?) of post meta fieldset (created with Simple Fields Plugin)
- How to fill custom fields with brackets in their key with add_post_meta()?
- Looping inside block return
- change order of images attached to post
- how can I show name and value of Custom Fields together?
- Gravity Forms Update post meta from template [closed]
- put saved metabox values back into fields and then display on the front end
- Best way to achieve multiple links in a post title
- How to get custom image field of specific post id
- custom filed from post in the side bar
- wordpress multi user question
- How can I change author of posts to the value of one of the custom field of the posts?
- How to display custom fields in hestia theme
- Adding Custom Metadata to my Archive/Posts page
- How to improve my non-unique metadata MySQL entries?
- Saving Custom Field that includes Quotation marks
- Custom Fields Not Showing (ACF not installed)
- SQL query to change the value of a Custom Field
- Custom meta POST request fired twice when updating a post in Gutenberg
- Post meta data not showing in frontend, until hitting ‘update’ button
- searching by keywords in post’s metas or pagination links problem
- Add custom field information to source meta data
- How do I update custom field post meta in frontend post template?
- How to Find List of Available Custom Fields for Theme?
- update meta field value after
- Custom Fields Not Working In Footer
- ACF plugin and field update
- Delete custom meta
- Check if value exists before saving
- Echo out custom fields in comments
- Get meta value when the page is a blog archive
- Search one custom field?
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- Save values generated via API as custom meta fields
- Adding custom fields to images
- How to save dynamically generated value in post type?
- wordpress simple post multi rating with post_meta and user_meta
- update_post_meta not working in action hook
- Display meta data from a custom field within plugin Category Grid View Gallery
- Custom fields / meta box output
- If post custom meta data is not set, show normal state
- Colecting values from custom field checkboxes and displaying them in the post
- Build Array from Input Fields question
- custom field with links
- Order by a meta field in query loop
- How can i put a custom field inside this php
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)
- How to add new Metadata options (Date, Author, etc.) for Posts?
- Saving multiple custom meta box fields
- What is the best way to get a different post’s custom field/postmeta with js?