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”
Here is a quick tip to remove the piece of code added by WordPress 4.2 in the header of your pages about emoji icons Continue reading “Remove WordPress emoji code in your pages head without plugin”
Recently, I had the bad surprise to find h1 heading titles in the widgets of my WordPress theme. Here is a small function to change those heading h1 to h3 (or another tag) Continue reading “Change widget headings from h1 to h3 in WordPress”
When you create a bespoke theme, you usually need some specific plugins who needs to be activated for a normal use of your theme.
Here is a way to create notice message on your admin area. Continue reading “WordPress, show admin notices, required plugins for a theme”