Could it be that:
<?php get_post_meta($office_id, "latitude", true); ?>
Should be
<?php echo get_post_meta($office_id, "latitude", true); ?>
AKA a missing echo statement?
Related Posts:
- WP_Query orderby custom field then post_date in one query
- Filtering a WP_Query meta_query by numeric values isn’t working
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Filtering by Post Meta Custom Fields – Performance
- WP_Query: include custom post type only with specific meta value
- Returning a list of custom post types excluding those without a specific meta_value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- Possible to filter custom post type with multiple meta data?
- Query based on custom fields start and end date
- meta query multiple values for the same key
- Sort custom post archives by a meta value from a different custom post type?
- Custom post types – meta_query: search lesson which starts sooner
- Meta_Query refuses to return results
- Query events post type after current date and timezone
- Selecting posts older than the current Unix epoch timestamp
- Querying meta values within an array
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Multiple orderby values in WP_Query
- Mixing regular and custom post types (with meta_query) on home page
- meta_query for keys that aren’t yet set
- Search multiple custom fields by using meta_query
- how to filter by last name for custom post
- Filtering a WP Query result
- Display Custom Post Type Fields
- order by meta_value serialized array
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Combine tax_query and meta_query in WP_Query
- WP Query group/order by category name
- query order by date on custom type: wrong order
- exclude custom post type by meta key in wp_query
- Display custom post types with custom date field value (before today) & order by custom date field
- wp_query to find posts by year and month
- How to dynamically attach pictures to a carousel
- Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
- meta_query compare >= not working but
- Custom Post type and Custom Field WP_Query
- Including Custom Meta with posts_where query
- WordPress custom loop filter by meta_key and value with serialize data
- Problem querying Custom post type by custom fields
- Orderby CPT custom fields not working
- Meta Query Not Returning Output Despite Having Matching Values
- Query Multiple Custom Posts by Custom Fields
- Why is this query not working? (Standard posts + custom post type)
- First custom field value (out of several) displayed twice after query
- Meta Query posts not showing on ending date of custom field
- Configuring a meta query with multiple post types that have the same relationship on a single page
- filter search custom field query
- WP_query – Filter by tax_query and meta_query using multiple select
- How to get specific post meta by title or id
- find custom post type post by searching its custom field with my string
- WP_Query of custom post type sorted by meta_key has unexpected results
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Group by custom field value (start and end times)
- WP_Meta_Query object with conditionals
- Sorting by meta_key different to search criteria?
- Using WP meta query to show custom post types by a start and finish date
- Cache issue with WP_Query and custom field filtering
- How do I list a custom field and custom taxonomies for each result in a loop?
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- order the meta query results by 2 custom fields
- Query custom post type that has a serialized relational advanced custom field value
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- Sort custom post column by generated value?
- build child and anchestor three from post parent
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- meta query condition don’t work
- How can I query and sort custom-post type using WP_Query
- Custom query result empty on page 2
- Meta query and compare “!=” not working as expected
- Use WP_query to match post types based on custom field values
- Filter posts by their related field’s custom field
- Show posts from WP Custom Post Type selected from a field in a metabox
- Query custom post type and custom field by URL parameters
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- Not able to get my custom search result using meta_query and tax_query together?
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- Error in WP Query. If variable is empty it is displaying previous post value
- Querying, storing, and using data from 2 separate custom post types
- Conditional posts in WP_query for search
- How to stop wp_query searching pages as well as the specified CPT
- WP_Query and two custom fields returns no posts
- Custom Query With Multiple Meta Key Value
- Storing/querying custom date data
- loop through custom post-type with two meta_keys
- Get Posts ordered by a date custom meta field
- querying to custom field over ACF REST API
- Order Wp Query by earliest of 3 dates meta query
- Display ACF object field data using Elementor Custom Query
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Sort CPT by taxonomy AND THEN by custom field
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?