Sometime you really need to remove the administration notices injected by other themes or plugins from your theme or plugin administration pages. If I can understand that admin notices could be very useful, injecting them indifferently in every admin page could lead to conflicts, specially if injected in other plugin/theme pages. Who injects such notices […]
If you don’t use the new WordPress blocks, you should avoid to load the block style CSS on your page to optimize the page load speed. Here the three lines you need: add_action(‘wp_print_styles’, function () { wp_dequeue_style(‘wp-block-library’); }, 100); Adding the action with priority 100, it will be executed after the style has been enqueued […]
Never needed to change the standard (2 week) login cookie expiration time of WordPress? Here the 3 line of code you need. add_filter(‘auth_cookie_expiration’, function () { return 365 * 2 * DAY_IN_SECONDS; }); You can add those line in the functions.php file of your theme. DAY_IN_SECONDS is a constant defined by WordPress and represents the […]
Shortly: I needed to change the “sender” of all emails from a blog so every delivery error would have been sent to a specific mailbox. Without installing plugins, the three lines of code needed are: add_action(‘phpmailer_init’, function (PHPMailer $mailer) { $mailer->Sender = ‘bounce@domain.com’; }, 1000); They can be added in the theme functions.php file for […]
This error happens when there are tables on your WordPress installation created with different collations. Here we’re going why that happens. WordPress has a built in feature: if you do not explicitly declare the database collation (how a database should compare strings) it makes some thoughts about it and possible decide to use the new […]

Dear friends, even in the second part of 2018 your generosity has been huge. You all donated 260 euro which, today, have been donated to humanitarian initiative through Medecins Sans Frontieres and Save the Children. Hope the best for you and your families. Hope more and more children can enjoy their life with our little […]
If you need to set to noindex the categories (or generally archives) pages (except the first one), you can add this little snippet of code changing the behavior of WordPress SEO. WordPress SEO has a filter triggered just after the meta robots value has been computed. Intercepting this filter and checking the context, we can […]
To set the rel=canonical pointing to the first page of a paged list in WordPress (for categories or tags) and using WordPress seo you can easily add a filter with a small piece of code.
When comparing few sites with similar content about pregnancy I found the SERPs on few broad keywords totally ignoring some of them. While few are on first or second page, the others are positioned after the fifth page and the better positioned results (on third or fourth page) are, from a human point of view, […]
SEO and bbPress
This article contains a set of points we should evaluate to properly optimize bbPress for search engines. It does not contain best practices or magic solutions, it tries only to cover every aspect of contents generated by bbPress and offers a series of questions that should be answered by a SEO. I hope to find […]