There isn’t (and shouldn’t) be an answer with any specific version for this. New versions come out, old versions get discontinued.
-
At the minimum you should use supported version of PHP. This ensures it still receives bug fixes and (or for less recent version) security updates.
-
Preferably you should be use the latest stable version of PHP. This ensures you get best possible performance.
PHP site has handy Supported Versions page, which clearly covers currently relevant versions and roadmap for their support.
Related Posts:
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- How do I display the main domain for my WordPress install?
- Fetch Data from an external MSSQL Database in a Managed WP hosting
- uploading a new theme to live server
- Your PHP installation appears to be missing the MySQL … After deleting and restarting from cpanel
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Childs PHP files not overwriting Parent’s PHP files
- Detect a focus on wp_editor
- Failed media upload: “The uploaded file was only partially uploaded.”
- Changing user_nicename
- Utilize WP-CLI from inside WordPress, not SSH
- How to link to a custom .php page in my folder
- How to execute a simple php script in WP (I don’t think wp_enque_script applies here)
- get_transient(), PHP switch(), and comparison operators
- Front end submit form with jquery form plugin
- WP_Query meta_query results date by date
- Rewrite sub folder dynamically with country code in WordPress using PHP
- allow users to publish without admin approval
- Use WordPress’ URL rewrite engine
- wp nav menu: add attributes to menu items [duplicate]
- Advanced Custom Fields: Post Object – Not returning data [closed]
- Is there a way to get 3+ dimensional array from a single MySql command
- Admin Options page. Save as Array
- How to run JS, PHP and etc. inside WP post?
- How to implement three forms(like contact form) in wordpress
- AJAX request status 200 but no actual “response”
- Delete a WordPress transient from a shortcode on Page/Post update
- How to enable Zend Optimiser+ with Batcache
- Getting the author name on author archive page
- Create own WordPress shortcode gallery
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- How to prevent WP_Query function from returning all posts when empty?
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- How do I exclude recent post from recent post php widget
- dynamic dependent select dropdown
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Best way to schedule daily change in CSS parameter
- wp-comments-post.php file returns a blank page
- wp_mail file attachment not being placed in upload folder?
- WordPress Child Themes
- Email address not displaying where I expect it to
- need to insert php code in path Get Template Part [closed]
- Set Cache-Control header for 301 redirects
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- if statement with is_active_sidebar()
- WordPress template page name displayed on screen
- How to add API security keys into JS of wordpress securely
- Adding conditional text to a PHP Shortcode Template
- How to deal with too many $_POST variable conditions from ajax request at backend? [closed]
- Warning: in_array() null given in PHP function
- Convert code – not work
- wp_nav_menu not working correctly in my underscores theme
- use loop to return blog details
- PHP error when using newer PHP versions
- Environment to do updates to legacy (4.7) version of WP while staying on php 5.6?
- How can I count ACF sub_field with a certain value
- WP_Query with AJAX returning empty array
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Output custom text field as unordered list
- Using Conditionals when homepage is a page and blog is /blog
- Hook on file upload
- Contact Form 7 WordPress, checking a few fields, if empty then invalid
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Date translation doesn’t work
- Drop down question
- How to move a post from one category to another
- WordPress add custom search
- custom mailchimp form using HTTP API
- How to get the url of the entry in which an image belongs
- How to override theme’s public static function inside of a trait?
- pass datetime using wp_localize_script to frontend from settings page
- Advanced Custom Forms PHP formatting for do_shortcode
- Infinite loop when logging out using custom login form
- add custom metabox to media library custom widget
- add_action in wp_head accessible from class
- Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails
- Can’t add to time? [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- Let user select the number of posts shown per page jquery error
- Displaying 3 Category Posts differently
- How can I export data without using any import/export plugin
- Can’t make product images clickable
- wordpress ajax return 0
- Post formating on Home page
- Category – “No content found”
- divide custom field values in div every two values
- Weird slug in archives permalink
- Admin bar nodes
- How can I correctly POST to a WordPress page?
- WordPress – Image href for home menu nav not working
- Cron job to call php to email last 24 hours posts
- WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]
- A next page function with shortcode?
- How to dynamically change webcam photo timestamps
- How to improve wordpress site creation process to increase productivity.
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- Add multiple HTML attributes to an Elementor button
- Customize the summary table of an order in the email
- How to sort custom sortable column by custom table value