Menu Close

Jetpack Subscribe specific posts, category selection

The Jet Pack (Jetpack) is a plug-in from Automattic, created by WordPress. This is one of the most exiting plugins in WordPress, with millions of people in use, despite issues that have been pointed out as leaking issues and have not yet been repaired.

    Why we use the Jet pack (Jetpack) even with slow speed

There are a number of reasons why Jet pack is not perfect, but also has a key slowdown problem on the Web site. First of all, the features of the jetpack are very much functional, so you'll feel like you're going to have a similar slowdown anyway to implement them in different plugins. Essential features after the installation of WordPress, image CDN Technology or the subscription (Subscribe) that is mentioned in this article, in fact, as close to impossible to build your own features that must be through large companies, so that WordPress manufacturers provide with a solid reliability is bound to be attractive. It seems to be acceptable because it is slow, but it is very wonderful in terms of stability and reliability.

The reason why the Gkkmon is using the jet pack plug-in is actually just two functions. One is the jet pack commenting system, and the other is the subscription feature.

The Jetpack subscription feature is the ability to send a new post notification by email to people who follow your blog. Jetpack Subscribe It is no wonder that diversity or detail is falling over programs like Mail MailChimp, but it is a very attractive feature that is completely free with no limit on the number of subscribers or mail.

    Critical issues with the Jet Pack Subscription (Subscribe)

I like the ability to use Gkkmon more permanently than the high-quality technology, but the jet pack's subscription features are very attractive. I was using a multilingual site plug-in poly Lang (Polylang) was a big problem, so I thought it was not possible to use a new article notification, but it was still OK, even if you feel uncomfortable to some extent. That's just a growing number of languages, and a big Jet pack subscription mail will be sent!

What do you hear, the current Gkkmon, the Korean language, in English, Japanese, Russian and Simplified Chinese, the articles are automatically translated, and each time you write a post, five emails are sent to the Korean user for each language, and the Japanese user is also sent five. If I am a subscriber, it is a very fatal problem that may be attributed to spam mail!

The best solution is to send a bucket in the language of the people who have subscribed to the jet pack or the features of Polylange, but as I said earlier, there is no such function in a simple jet pack subscription with the addition of a new article, so there was no such function in Polylang. So when I was thinking about writing a professional mail system, I found a hook feature that allows you to "choose whether to send email using the toggle button for each post" on the Jet Pack Subscription (Subscribe) official description page!

    How to send a jet pack subscription to specific posts

The usage is really really simple. The functions.php file of the theme is the best

Add_filter (' jetpack_allow_per_post_subscriptions ', ' __return_true ');

I add it. Then in the ' Public ' tab of the WordPress writing editor

Jet Pack Subscription: □ Not sending to subscribers

A toggle button is created.

In addition, as shown on the official description page, a certain category of posts can be set to not be sent by email.

Add_filter (' jetpack_subscriptions_exclude_these_categories ', ' Exclude_these ');
function Exclude_these ($categories) {
    $categories = Array (' Category-slug ', ' category-slug-2 ');
    return $categories;
}

If you follow the code above, you will not be sent a category-slug, category-slug-2 category.

Conversely, if you do not post to one of the specific categories, you will not be sent any mail.

Add_filter (' jetpack_subscriptions_exclude_all_categories_except ', ' exclude_all_except ');
function Exclude_all_except ($categories) {
    $categories = Array (' Category-slug ', ' category-slug-2 ');
    return $categories;
}

The caveat with these features is that, as you can see on the official page, you only need to use one of three things. Keep in mind that if you use two or more at the same time, they are not filters for coexistence with each other, and you get an error, such as one that doesn't work.

Comment (Information not required)

Posted in All, Wordpress, Tips, Information

이메일 구독 - Email Subs

최선을 다해 직접 만든 콘텐츠만 공유합니다.
We share the best content we have created.