My guess would be that go.php is located in the root of the WordPress install.
The code in that fild would be something like this.
<?php require 'wp-config.php';
$post = get_posts([
'post_type' => 'post',
'orderby' => 'rand',
'posts_per_page' => 1,
]);
if (!empty($post)) wp_redirect(urldecode(get_permalink($post[0])));
This is a wild guess but it does the job.
This code gets one random post.
If found post, get the post permalink (url), decode the url (good if you use other languages besides english) and redirect to that post.
Related Posts:
- How to use nonce with front end submission form?
- PHP – redirect https to http and www to non-www
- Check if current page is wp-admin
- wp_redirect only works on main site and not on other sites
- Troll the hackers by redirecting them
- Is this a correct usage of ob_start() in my WordPress project?
- Logout redirects to default page
- Manually Create PHP Page For A Redirect
- Admin Menu new tab external link
- send popup after wp_redirect()
- Custom Login page, redirection and restrictions
- Implementing a multilingual WordPress site by installing several instances of WordPress and redirecting
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Cannot modify header information – headers already sent
- Frontend redirect after delete post in wordpress
- Redirect posts to post editor page based on query string
- Displaying Logged-In User Name in WordPress Menu
- How to set custom cookies before output
- How to use wp_insert_user on WordPress Multisite?
- How do I add a php statement to a jQuery string
- Upload images and attachments from frontend form
- Should I use wp_mail or PHP’s mail? [duplicate]
- Successful or Error Message after running mysql code in functions.php
- Link to file in plugin directory from wordpress template?
- Insert array data on plugin activation
- Auto crop images in WordPress
- Trying to make php run in a post
- Adding Default Settings to Theme My Login plugin
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- WordPress Site Running Extremely Slow on Dedicated Server
- How to use an associative array in post__in with WP_Query?
- Can you run WordPress on a MarketLive/Java EE server?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Set meta field to publish date + 2 weeks
- Redirect undesirable domain
- WordPress Gravatar filter is removing my custom attributes
- Refresh table data with Ajax
- Trying to install wordpress locally with mamp, but have unsupported php version
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- How to optimize the IF condition with many conditions and same output [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- How to list posts from a plugin taxonomy?
- Theme not calling Jquery properly
- Creating Database Table vs. Adding MetaData to Post & User
- How to put a form with php code into a variable or shortcode?
- WordPress redirect redirecting too many times or not at all
- how to prevent wordpress admin from logging in via woocommerce my-account page
- how can i add class or span tag at sprintf?
- How to change logo by category
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Problem with custom loop and wp_list_pluck [closed]
- How can I get plugin meta data without knowing the plugin folder?
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Plugin: Front-end Editor – User role specific editable content?
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- WordPress Custom Add To Cart Button with AJAX
- Custom reduce stock code affecting date_modified – How to bypass?
- Publish button now showing content after saving
- Background image no longer fits to screen now that project is in php files
- Trying to call dynamic content into a 3rd party shortcode
- array wordpress when get is null
- Custom search query on WordPress page not working
- PHP session not staying alive. headers already sent
- how can I call a function when time expire
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Get Child of Child Pages in custom Menu
- Latest posts feed with a specific post always first
- WordPress Post undefined error with Post Date (New to Wordpres Dev)
- Move Jquery.js to Footer
- Updating the database after parsing CSV document
- Need help to create WordPress page that decodes a text file and publishes it in JSON format
- Attaching an upload to a user
- Change home_url in searchform.php to go to HTTPS instead of HTTP
- can’t grab PHP $_POST variable
- Ajax Load more CPT via shortcode
- Loop 1 user randomly
- Wp_mail doesnt work
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Sort by multiple options in custom field
- Is custom behaviour possible when asynchronously uploading?
- How can I show only if custom field has content [closed]
- Top menu disapears in Category Pages when filtering using ACF
- doubled content
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Keeping the previous get value and add another value when submitted
- Pagination not displaying
- How to add active class dynamically
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- I’m not able to get access $wpdb in my php file in wordpress
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Understanding responsive imagery
- How to get meta box labels?
- get_query_vars always retruns empty value
- How to group by column a and sum column b and c in a php array
- Convert custom field date format to “WordPress default”