Eventually, I realized that the output lines after the queries are stack traces! So I looked in the theme’s code, and indeed inside the white_label_themes->CUSTOMFIELDLIST
function is a $wpdb->get_results(...)
call to the queries. So it wasn’t get_post_meta()
after all – that part appears to work fine. I’ll see what I can do regarding those queries – looks like I can simply remove them…
I still wonder about the 2 other queries from wp_users
and wp_usermeta
– this has nothing to do with get_post_meta()
, so I started a separate question.
Related Posts:
- Ordering Posts By Meta Data
- Order by meta value or date?
- Filtering posts by post meta data
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- Custom query with query_posts doesn’t show post without certain meta_key
- How to sort by meta value?
- How to display liked posts of current user in wordpress?
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- Order by meta_key with two meta_queries
- Sort Posts by Multiple Meta Values [duplicate]
- Querying posts with meta value that begins with a certain pattern
- ACF Custom Field WP_Query, but need to get all posts, if field doesn’t exist
- IF.. post meta show… Conditional Tag Help…?
- Single meta key with multiple meta value in like comparison
- Get posts between custom dates
- order posts by meta value on posts page
- Query_post($args)
- query_posts() on key’s value, or key’s existence
- Fetch Record based on meta key dates
- how to make members list directory through wordpress post custom meta key.
- How to retrieve an array of post IDs by a particular value stored in a custom meta’s array
- Query posts by meta_key whose value is an array
- Filter Loop by Custom Field Value
- meta_query check for meta value in key which holds an array of values
- Exclude posts by post meta value
- Frontend form with multiple posts
- query_posts orderby postmeta [closed]
- Meta query stopped working
- Custom query looking at multiple custom fields and properly sorting
- How do i create a custom post query when the meta value is an array?
- Tax query get first product with attribute value in pre_get_posts
- Use WP_query to match post types based on custom field values
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- query_posts() with multiple meta data comparisons
- How to optimize ‘select found_rows()’ query? Several ‘high load average’ alerts daily
- get all posts with certain meta data
- Limiting the amount of posts this displays
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Display/query post formats
- How to query post by user role?
- query_posts() in function makes global $wp_query out of sync?
- WordPress Custom Query
- What is an efficient way to query based on post_meta?
- How do I create my own nested meta_query using posts_where / posts_join?
- Using Query Posts With Multiple Post Types And A Taxonomy
- Help altering a query to exclude all but standard post format
- How to limit search to first letter of title?
- Post Title displaying but not in the wrapped HTML I need
- Can’t sort order of wp_query with 2 meta keys
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- Why is that gdsr_sort=thumbs (GD start rating plugin) only works with query_posts and not with WP_Query?
- Query_posts $query_string
- How to order posts by slug using query_posts/ Wp_query
- Search stores (custom postcode field) within 5, 10, 15 miles of user inputted postcode.. Code modification
- What is the difference between “manage_{$post_type}_posts_columns” and “manage_edit-{$post_type}_columns”?
- How to show only today’s post?
- use query_posts to return a post OR a page by ID
- Get meta info related to current post
- query_posts for child pages
- Is it possible to query_posts using post__in and then Loop through them in the ordered they were queried?
- using multiple meta_key and meta_value in query_posts
- orderby:date not working
- I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
- Placing post data (title, date, and excerpt) nested in static content
- Get attachment by meta_key value
- list child page items (1 level with meta keys)
- meta_compare seems to be treating values as strings instead of integers as expected
- Sorting a query Field by date
- Trying to package posts for republishing by partner offsite
- number of posts per page + random + exclude categories
- WP Query – Is this correct?
- How to Query Post
- Order by meta value pro first then meta value free in my search function
- query_post and wpdb returning different results
- Exclude current sticky post
- query_posts pagination will always show identical content
- WordPress Custom Query to get Most Commented Posts in the Past 7 Days
- Save meta data with post, Without using any plugin [closed]
- Restrict query_posts by Date?
- How to solve this without flushing the rewrite rules for each post query the visitor triggers?
- Sort post by custom field numeric value
- Notting but the latest post content keeps on being loaded
- query_posts doesnt show pages with given ID when post_type => page
- How to put posts in pages using query posts
- Query add html after set amount of posts?
- Custom loop off by one post
- How to setup blog page to render blog posts minus afew categories
- How to get max value of filtered query post
- Trouble with serialized metadata
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Ordering of posts, 2020 Year showing as next event when should be last
- Pagination doesn’t work in query post in tag template
- Saving custom fields for WP_Query to retrieve
- How to sort posts according to meta value?
- How to display most popular post by views count in WordPress?
- How to get only current images of a post
- Querying meta values within an array
- query multiple posts by id using a string parameter, not array()
- Query posts in a category and include only one post per author?
- Achieving pagination with `query_posts`