Meta retrieval go through Cache API, so retrieving same data for same post during same page load won’t cause database re–querying (and in case of Object Cache even between different page loads).
So that concern aside I would recommend (as usual) to:
- Architect in a way that makes sense, not in a way that might or might not be faster (guessing isn’t worth it)
- Benchmark the result
Related Posts:
- Is checking whether the blog is installed necessary?
- Is it better to assign functions like get_the_id() to a variable if it’s used multiple times?
- Register vendor JS/CSS only on pages that require them?
- Always the Latest google jQuery instead of default WordPress jQuery
- Optimizing a WordPress site
- Is storing in a variable the result of a fonction a most powerful way to code an if structures in WordPress?
- Ajax call always returns 0
- Is it ok to use a function to output the text domain name in a wordpress theme
- How to override a function when isn’t at functions.php
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- How to count number of functions attached to an action hook?
- Show modified time if post is actually modified
- ajax live search for post title
- Hourly Routine Not Firing ( wp_schedule_event() )
- How to get an array of menu items from the toolbar?
- Using get_terms for custom taxonomy in functions.php
- Fatal error: Call to undefined function add_action() – an untouched problem
- echo or print_r in an admin function
- Editing or filtering the output of the Genesis navigation
- Overriding methods in a child theme
- Automatically Add Specified Value to Attachment Metadata upon Upload
- WP disobeys disabling of the posts revision feature
- Twenty Eleven Child theme error when attempting to use a rewritten function
- Display gallery on top before content
- List of Body Classes Generated by body_class()
- is_dynamic_sidebar always returns true while using Jetpack visibility
- wp_trash_post function to only apply to posts, not pages!
- Redirect specific page in WordPress for first time visit
- Adding widget to dashboard with wp_dashboard_setup not working
- qTranslate in functions.php
- Using Schema with `the_excerpt`
- Image rotation fails to regenerate custom sized thumbnail
- Register and load scripts
- Display alert on successful user Sign Up
- Getting different functions data while using while loop in wordpress
- How to rewrite the custom url in wordpress?
- About cron delete user with meta_key
- Unable to login using username
- Set spesific size of featured images
- Excerpts are not displayed by a shortcode on category pages
- Getting comment count per post not working
- Functions.php Problem
- adding custom script to functions file
- It does not work concatenation in function.php
- edit formatting.php in a theme so it wont get overwritten
- Get arguments from URL
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Where do I store custom functions that call custom page template files?
- Excerpt for pages not showing
- Can’t Write Custom Widget Code In One ECHO
- Got white blank page after copying the functions.php to child theme
- Numbering lines of code with the tag?
- Insert nofollow in a “Powered By” link, except in the homepage [closed]
- Image loading function not working on archive.php template
- How to add array [closed]
- what is best way to keep track of changes made in wordpress website? [closed]
- Is this an acceptable practice for WordPress theme development?
- Child theme functions.php
- How to echo Widget Title in Custom Frontend-Template Box
- Redirect to post after publish or update a published post
- Page Template Won’t Load Correct CSS File
- WordPress show bad the php hour and date
- How Can I add a menu to the theme from withen the function.php file
- show all the posts thumbnails
- the_excerpt function not showing image
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Use a filter for wp_robots to block CPT/feed/
- Trigger email alert if file downloaded
- Completely Disable WordPress RSS Feeds
- How to hide content on mobile in the functions.php file – woocommerce
- Order column custom date using pre_get_posts
- query_vars treat as single var from URL
- Running javascript without hooking wp_head
- WordPress Lite/Light
- Remove text after a dot and a colon in Woocommerce product title
- Selecting specific query for offset
- Is_Page doesnt detect my page
- Enable CORS Request for hostname using IP address
- Show image after X para – center aligned
- Problems adding a new field to product in cart
- Change default color scheme in twentyfifteen child theme?
- Restrict access if logged out except for homepage
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- function replace_text for entire page
- DISABLE wordpress upgrade page
- How to echo the translated custom field?
- Only Show One Category Name Per Post
- Moving CDN jQuery to footer does not work?
- Pass max posts to Javascript
- update_usermeta don’t work
- WP supersize not displaying when different languages flags are selected
- wp_list_pages change of children and anchor of parent
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- How do I make my child theme’s CSS update when I save it?
- Bulk set Post Title as Tag where Tag is Empty Function
- How do i set global variable in a function in wordpress functions.php
- How to add more than one menu for logged in members?