WPForms is a great form plugin for WordPress. It has an implemented honeypot functionality, but because the plugin is so popular, many spammers know about this honeypot and know, how to not trigger the honeypot. I receive a lot of spam from WPForms forms, that’s why I was looking for a solution to implement a […]
I just updated my local sentry, but there was a problem with the update that leads to this output: The problem can occur, when you update from an older 10.1.0-dev version. To fix this problem, run these commands: Everything should now be up and running. More details here.
In Germany, the GDRP (in german its the “DSGVO”) permits the usage of Google Fonts. Instead, you have to host the fonts locally. The Astra Theme loads Google Fonts by default, if you don’t use the System Fonts. This is a problem in regard of GDRP. To avoid this, you have to add the desired […]
In post archives, WordPress mostly shows a post excerpt instead of the full post, followed by a “Read more” link. If your post contains tags like “pre” or “code” (and many more), the content of these tags will be removed from the excerpt. This can lead to conditions, where the excerpt does not show the […]
FacetWP is a cool WordPress plugin, that allows filtering archives, search results, etc. by so called facets. You can find more information about this plugin here. FacetWP works fine with the Astra theme, except one point – pagination. Lets say, your archive has 10 pages and you select one facet to reduce the number of […]
I just had a problem with this site. I use Laravel Forge to manage multipe VPS. Most of these VPS host multiple WordPress websites (using isolation). And I just want to delete one of these sites and create the same site again. That didn’t work. The site creation failed after deleting the site with the […]
You can use a simple SQL statement to remove a featured image from all posts, pages and custom post types in WordPress. Simply run this statement against the database: Please create a backup before running this statement – if anything goes wrong!
If you want to delete all rows from a table but exclude the last X rows (in this case 20), you can use this SQL statement: Another option would be to use this query to avoid a large list of IDs:
What’s the difference between new self() and new static() in PHP? Or is it the same? It is not the same. self refers the class in which the new keyword is actually written. static refers to the class in the hierarchy, where the method has been called. Look at the following example: