You could do it like this:
// store post meta in a variable and use that so you aren't pulling the post meta data twice
$landPricing = get_post_meta($post->ID, "Pricing_Land_Only", true)
if(!empty($landPricing))
{
echo $landPricing;
}
else
{
echo "Sorry, nothing was found.";
}
Related Posts:
- Where are custom field values stored in the database
- Any way to add custom options to Gallery Settings?
- Using TinyMce with textareas in meta boxes on custom post types
- How to display all custom fields associated with a post?
- passing argument to get_template_part() or a better way to code
- ACF – get_field() using ‘option’ as post_id not working
- How to set a default meta value for custom field
- Populating meta box with select-list of existing posts, and assigning it to custom post types
- Create meta boxes that don’t show in custom fields
- wp_editor in add_meta_boxes does not show gallery
- Copying Custom Meta Values from existing post to a duplicate post
- Move value of one custom field to another
- Deleting a custom field field
- custom field to always to .get_the_title()?
- Displaying posts with only upcoming dates according their custom field date value
- How to filter a dd/mm/yyyy date from a custom field in a query
- How do I add custom_meta_box_id’s value?
- Get a post_id where meta_value equals something in a serialized meta_value field
- List posts with common custom field value
- little help with a mySQL query to wp database
- Importing users to Buddypress with custom fields
- How do I query for a post by custom field?
- Including Database Generated Pages in Site Search [closed]
- Is it bad to use a lot of Custom Meta Fields?
- How to save media files under custom folder without changing wp-config.php or changing media settings
- How can I sort homepage by a meta value?
- Audio player shortcode not showing up when using variable
- Performance of storing multiple meta fields vs one JSON encoded field [duplicate]
- get_posts that match a user-specified value on a page
- How to add image attachment to post from a single meta key (Woocommerce)
- Custom Fields – Taller editing area
- How to add Advenced Custom Fields In Single Post
- Get updated meta value after post update or published (custom post type) using hook
- How to get categories with posts by custom field value?
- Meta Query returns wrong number of posts
- How to hide a custom field if there is not a value
- custom-meta-box checkboxes from loop won’t save
- Custom dropdown field added to media gallery; how to get it to save properly?
- Uploading PDF using Media Uploader
- Display Custom Field for a Specific Role, but not for Admin
- Correct syntax for retrieving custom field in CPT
- $TBA Getting Translated to $0 (Custom Fields)
- How Do I Display A Custom Field In The Sidebar Of All My Pages?
- Hide text if one custom field out of two is empty [closed]
- Multiple instances of TinyMCE are removing tag
- Echo the custom field value from the latest post from the ‘video’ post format?
- Custom Field – Do Not Show if Value is Empty?
- How to query an out put value?
- What’s the best way to implement custom widgets on a per post basis?
- Displaying Meta-Box Data Properly
- wp custom field date format compare
- frontend submit post jQuery clone row won’t save
- Retrive Image URL of Custom Fields in Theme
- Include one custom field in search results
- Custom search SQL Query to add custom field in result
- Search Results Page – Displaying Custom Meta Fields
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- using advanced custom field to control css hover color
- Custom Field data only shows after manual post update
- Custom field Search with Relavanssi
- How to exclude custom fields from search queries?
- Add Custom Fields After Page Title
- Footnotes in custom fields
- How to Convert Custom Fields from Text to Array?
- Custom Meta Box Upload Image Problem
- Custom Query: query by post custom meta data
- Use update_post_meta to older posts
- Using Custom Fields to Trigger Specific Actions on Saving a Post?
- update_post_meta
- update_post_meta not working well
- User query – getting values for custom meta keys/fields
- WP meta_query args not working in function
- trying to add extra field using hooks
- Can’t set custom meta fields for a post
- Line break description wordpress
- Custom field disappeared from screen options
- Custom fields with wordpress
- Contact Form 7 List Building
- Link fields in User Admin list
- what would be a good example of a php dynamic code to display contents of textarea?
- ACF – Compare user and post data
- Advanced Custom Fields deleting some code and adding code for a slider
- How to format the various types of custom fields?
- Get file size from ACF repeater field
- Append custom field items to content from plugin
- Query postmeta values, and return multiple post_titles for common meta value
- Set Value To Custom Field While Submit
- Custom Field: Display only if a specific key is selected outside the loop
- Show or hide lang=”ur” in main element
- How to use a custom field for search engine optimization
- Fetch data from a WP page with same name as current username
- Getting content from custom fields of different pages on a single page
- sort a custom field base on the date or anything
- How to get the value of particular get $meta value in wordpress
- custom field as a boolean with a checkbox?
- Retrieving custom field as shortcode
- Hiding custom fields when content is empty [closed]
- Website that sells statistics
- Extract array from custom field
- I used a custom field for header image and can’t get it to show up on posts