WordPress recent post

From your static page you can make a jQuery GET request ( using jQuery is not mandatory though can be the easiest way) to the default endpoint posts of the WP rest of your installation. More info about WP REST here: https://developer.wordpress.org/rest-api/ <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> </head> <body> <ul id=”remoteList”> … Read more

Posts order in grid

As I said in my comment, if 2-1-3 / 4-1-5 instead of the desired 2-1-4 / 3-1-5 is also OK for placement, you can do this quite easily with CSS grid. MDN has a lot of resources about this topic. Check out this fiddle, where I changed a MDN example a bit to your use … Read more

Foreach issue in get_posts function

The issue is that in the beginning of each loop you reset $output to an empty string: $output=””; So when then loop has finished, $output will only contain the output of the last loop. To fix the issue you’ll just need to move this line outside of the loop, to initialise the variable, while only … Read more

My posts are getting to Auto draft when I try to Publish

Can you try the following in your wp-config.php define( ‘AUTOSAVE_INTERVAL’, 3600 ); // autosave 1x per hour define( ‘WP_POST_REVISIONS’, false ); // no revisions What this would do disable auto-save and post-revisions. Try with that, if it works could be your then it could be your internet or hosting conflicts.