If something needs to be “random” than the last post ( or the one before last ) will answer that definition well enough. Just because you know it is not a post generated by a randomizing algorithm do not mean it is not random to the user.
There is just no way to have a “truely” random post if you care about performance, and that is before even discussing page caching.
Related Posts:
- Sorting list of sites from multisite network using wp_get_sites
- How to store the_title() into a variable to reutrn the value, not just echo it
- How to update single value in multi dimensional Post Meta?
- Looping through WP_Post Object
- Need to get specific data from array
- Create an array from an array
- How do I dynamically generate args for wp_query?
- Must Use Plugin Causing Query Error
- How to convert objects into arrays
- Parsing php string in jquery [closed]
- Admin Options page. Save as Array
- PHP get the first post separately from array returned by wpdb->get_results()
- Working with query_posts ( arrays and query strings)
- How can I add multiple ‘tax_query’ arrays via a loop?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Recent posts with featured image or fallback image with permalink
- Call global variable array() in woocommerce child/template
- Storing Array from returned database query and using the array in a new query
- get_the_tags() not iterating through for/while loop, but will with foreach
- get a simple array of all of the term names that exist in all taxonomies
- Populate dropdown with Child Pages based on Parent Page chosen
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- foreach loop still echoes array
- Exclude posts based on meta value
- Alter required message using comment form api
- Advanced Custom Fields – display label and value only if value entered
- wp_force_remove_style’ not found
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- How can I access string value in an array?
- How to use if statement in an array? [closed]
- How to array only one key from another array
- Filtering a function’ output for a new continued function
- How do I create a numbered list with PHP? [closed]
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Get categories names as an array to use it in theme settings
- How to get the last category name of a child category?
- Warning: in_array() null given in PHP function
- Foreach loop inside an array_merge
- If Array Values Match Another Array’s Values, Then
- WordPress loop by meta key that is an array? and how loop multiple arrays
- How can I get all values from my array in a loop in php? [closed]
- Getting posts to exclude from array
- Get all posts as an array ID => Name
- I’m unable to call img path using single quotes in an array?
- Comapare get_user_meta value
- How can get all users by current user meta?
- Get the id of all images in a post
- Output category list inside array
- how to make an array of post id’s in is_single
- How can I split my query result in 2 arrays?
- array_rand not working correctly?
- Get css class of menu item in custom menu structure
- Dynamically adding filters
- Order a WP_Query by meta value where the value is an array
- How To Pass Array To get_the_category_by_ID() and Get An Array Back?
- Using multiple variables to assign categories to an array
- Add custom fields from different posts
- Repeat a function with 24hrs gap for n number of days
- Sending simple variable on single page to WP JSON
- Create an array with all the links of the years’ archive (of a custom post type)
- Order users by random not working?
- Redux option doensn’t seem when include from functions.php
- in_array not working on dev server but works on localhost
- How can I show how much water got saved on this order (making use of the number of items bought) on a thank-you-page?
- Display one random image from Media Library
- How to display MySQL table data which is stored as an array?
- Show the subcategory name based on current product
- How to filter specific element of an array in wordpress/php?
- WP post meta – for loop inside for loop
- get_category_parents to array
- Notice : Array to string conversion on array_intersect user meta
- Store custom field’s multiple values in one user meta key
- Remove item from post_meta array via AJAX
- Make sticky post with FacetWP
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- PHP array to jQuery array ” Uncaught SyntaxError: Unexpected token < "
- Trouble with checked() for array of multiple checkboxes
- Display posts using post ID’s in an array
- How can i iterate through this shortcode array?
- Display a single row from nested array of custom field data
- How to use foreach and if statement within array of arrays?
- WP_Post is not from correct array
- Reformat data within a nested array
- How to find the function which is outputting Array
- Create Customization Controls from Array
- Non-array argument in array_merge()-function [closed]
- Exclude Post ID from Array Specified in Custom Field
- Adapting a php array to WordPress
- !in_array doesnt recognize category
- How to set if meta_value is lower < than other meta_value in a get_posts array?
- What is this mark for “? function()” [closed]
- How to combine array info [closed]
- Populate checkboxes from array
- PHP Use Declared array Variable inside already Declared Array
- Force array to be a string [closed]
- Why is my array_diff usage breaking things?
- get_body_params() is always empty in POST request
- How to group by column a and sum column b and c in a php array
- Adding date and time to the same request
- PHP how to submit array elements to database