One of my blog had this issue appearing a bit out of the blue. Clicking update the post would just redirect me to a blog page 404 with the url wp-admin/post.php Continue reading “WordPress save, update button going to 404 page”
Remove WordPress image you don’t need
Those plugins are great to do a bit of cleanup. But do a backup of your images first.
I was using advanced custom fields and the flexible content (and clone fields). To keep the code easy to maintain I have some of the flexible content section in their own file. I needed to pass variables to those files.
New install, a not so great server, when I copy my WordPress install and activate a few plugins Boum! broken. The classic “Fatal error: Allowed memory size of x bytes exhausted”. Here is how to fix it. Continue reading “WordPress fix Fatal error: Allowed memory size of x bytes exhausted”
WordPress has its REST API which allow to retrieve all your data through JSON. You can use the data from your CMS into your pages without the WordPress PHP structure. Plugins are no longer required, just install the latest version of WordPress 4.7 or more and you’re ready to go.
Continue reading “How to work with the WP REST API v2”
I recently had a WordPress problem. I used a plugin to redirect user seeing private page to the login page. However, subscribers can’t see private post once logged in. So it was creating a redirect loop. You can change that with a few lines of code. Continue reading “Allow subscriber to see private page in WordPress”