InPrevious articleWe explored how to use Ad INSERTER’s whitelist/blacklist mechanism to achieve ‘series’-based multi-language CTA precise delivery. But with the richness of the content system, we will inevitably encounter a new dimension:Classification.
The complexity of the configuration increases geometrically when the ‘Classification’ and ‘Series’ cross. This article will take the CTA configuration of PHP/YII2 enterprise development consulting as an example, share a set of effective rules template, and focus on revealing a very easy to step on the ‘fair-child classification’ identification problem.
1. Pain point: Why does adding a whitelist simply fail?
Suppose we want to belong to yii-2 Category articles add exclusive CTA. If you only add a ‘category’ whitelist to the original ‘series’ whitelist, it will cause two serious problems:
and/or trap: The different types of whitelists in the ad inserter default to the AND (and) relationship, which will cause the category and series to be displayed at the same time.
General CTA preemption: If you forget to exclude the category in ‘General CTA’, articles belonging to the category will trigger both ‘Specific CTA’ and ‘General CTA’.
In addition, when dealing with classification, there is a very deep hiddenwildcard trap(See the third part below).
2. Solution: The ‘priority blocking’ rule of black and white lists
The core idea is:Separate the logic of the classification and the series, and use the blacklist to achieve priority blocking.
Specific principles:
General purpose CTA: All specific categories and series must be blacklisted.
Category Dedicated CTA: The whitelist matches the category,But the series with independent CTA must be added to the blacklist(gives to a more specific series CTA).
Exclusive CTA: Keep the original logic, only the whitelist matches the series.
3. Full analysis of actual combat configuration (including key details)
1. How to choose the classification correctly
Click in the Categories filter box of Ad INSERTER, after the drop-down list pops up, search yii-2. Note that the search results show Yii-2 (yii 2 or children), which implies that it may contain subcategories, but the actual matching logic requires wildcard support (see below).
Screenshot 1: Click on the Categories filter box, the drop-down list will pop up, search: yii-2, select in the search results: yii-2 (yii 2 or children)
This is the key to resolving logical conflicts: the whitelist allows yii-2 Category shows, but blacklists are excluded yii2-advanced-api-rpc-i18n-logging series. In this way, when the article belongs to the category and the series, this CTA will not be displayed, so that the right to display is given to a more specific ‘series CTA’.
Chinese classification CTA configuration:
Categories Whitelist:yii-2* (must bring ;, see the following text)
Screenshot 3: English classification CTA configuration
3. Universal CTA configuration
The core of a generic CTA is ‘the bottom line’ and must ensure that all categories and series that have been covered by the exclusive CTA are excluded.
4. Core Discovery: Wildcards ; decisive effect on subclassification
When configuring the whitelist of the classification, it is very easy to step into a trap:If no wildcard is added ;, subcategory articles will not match!
To verify yii-2* In ; I did the following measurements:
Test preparation: I specially edited an article that originally belonged to the yii 2 category, canceled the check of the parent category yii 2, and made itSub-category only belongs to Yii 2 yii2 RBAC.
Screenshot 6: Edit the article, uncheck the category yii 2, only keep the lower category yii2 rbac
test without asterisks: Modify the configuration of Chinese classified CTA to Categories whitelist:yii-2(removed ;).
Screenshot 7: Chinese classification CTA configuration, modified to Categories whitelist: yii-2
Test results: Found this article that belongs only to the sub-category yii2 rbac,no longer displayedChinese classification CTA content. This means yii-2 Only strictly match the parent category itself.
Screenshot 8: Edited articles no longer display Chinese categories CTA content
Test with asterisks: Modify the configuration of Chinese classification CTA back to the Categories whitelist:yii-2*(add back ;).
Screenshot 9: Chinese classification CTA configuration, modify back to Categories whitelist: yii-2*
Test results: add back ; After that, this article belongs only to the sub-category yii2 rbac,Normal displayChinese classification CTA content.
Screenshot 10: Articles that only belong to sub-category display Chinese classification CTA content normally
Conclusion: In AD INSERTER, if you want CTA to take effect on a category and all its subclasses,Wildcards must be used ;(such as yii-2*). This is not only a fuzzy matching symbol, but also the key to identifying the parent-child classification hierarchy.
5. Verification of the final effect
After the above rigorous configuration and wildcard verification, all CTAs are accurately rendered as expected, without interfering with each other:
English classification CTA normal display:
Screenshot 11: Normally display English classification CTA content
Chinese series CTA normal display:
Screenshot 12: Normal display of Chinese series CTA content
English series CTA normal display:
Screenshot 13: Normal display of English series CTA content
6. Summary: The standard SOP of the new CTA in the future
Through this actual combat, we have precipitated a set of reusable configuration rules. In the future, no matter what kind of CTA to add, just follow the following three steps:
Create a new exclusive CTA: Set the corresponding Category whitelist (Remember to add ; to include subcategories), and add a higher priority series to the Taxonomies blacklist.
Modify generic CTA: In the blacklist of the general CTA, add a new Category (with ;) and the Series logo.
Multilingual synchronization: If multiple languages are involved, the English/Chinese configuration must mirror the above two steps.
The key to saying goodbye to the configuration explosion is:Don’t try to solve all problems with a whitelist, but delineate the sphere of influence through the intersection of black and white lists; don’t ignore wildcards ;, it is the only way to get through the bloodline of father and son classification.
I have been running my personal technology blog for more than 10 years and have published over 1,000 original articles covering WordPress optimization, multilingual websites, Google SEO, content strategy, and website monetization. All insights shared on this site come from real-world operation and long-term experimentation. If you are building a blog, developer website, SaaS project, or content-driven platform, I would be happy to share practical experience and optimization suggestions.
What I Offer:
✅ WordPress Performance Optimization
✅ SEO Consulting
✅ Multilingual Website Setup
✅ Ad Revenue Optimization
✅ Blog Growth & Monetization Consulting
If you would like to discuss your website, traffic growth strategy, or monetization opportunities, please contact me and mention: Blog Growth Consultation.