Categories
WordPress

How to change the WordPress mail sender in 3 lines

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 […]

Categories
WordPress

Query error: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_unicode_520_ci,IMPLICIT)

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 […]

Categories
WordPress

Donations From April 2018 to December 2018

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 […]

Categories
WordPress

Set NoIndex on WordPress Categories Pages with WordPress SEO

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 […]

Categories
WordPress

Set Canonical To First Page on WordPress Categories Pages and WordPress SEO

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.

Categories
WordPress

Related Searches: Is What Google Understand of Me?

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, […]

Categories
WordPress

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 […]

Categories
WordPress

Change the wp_mail() behavior using the hooks

wp_mail() is a core function of WordPress widely used by plugins to send emails. WordPress wraps inside that function a set of checks and normalization of data and finally uses the PHP Mailer library to actually send the message. Acting on the different hooks available, is possible to change the behavior of wp_mail() from just […]

Categories
WordPress

Custom CSS in a Post with Advanced Custom Fields and Header and Footer

I’ve asked few time how to inject specific content on a single post or single page using my Header and Footer plugin. It’s not an immediate implementation since it requires to use some PHP code which could result a bit unreadable over time (by non coders). In this example we still use a bit of […]

Categories
WordPress

Yoast SEO and Facebook Open Graph Page Title

It’s a recent news: Facebook does not allo anymore to change the title and description of a shared link. This is a bad news for who is used to change the title directly while sharing. Probably Facebook is focusing in having only one source of information for a shared page, the page itself, to avoid […]