Going from manual copying to fully automated took me half a day and three major pitfalls. Here is my experience.
1. Pain Points of the Manual Era
As someone who has been writing technical blogs for over a decade, I have dozens of bilingual (Chinese and English) articles in my “Self-Hosted VPN” series. Every article needs a CTA promoting my VPN setup service appended to the end. My previous workflow was:
- Finish writing the article → open an older article → copy the CTA code → paste it into the new article → save.
- Repeat the entire process for the English site.
- If I needed to change a single word in the CTA copy, I had to manually edit every single article.
Not to mention I have other series (like MySQL Performance Optimization and Linux Ops) that will also need different CTAs in the future. Manual copy-pasting is an absolute nightmare.
So I started looking for an automated solution and ultimately settled on the WordPress plugin Ad Inserter.

(Screenshot 1: Searching for the Ad Inserter plugin)
2. Why Ad Inserter?
Ad Inserter is a well-established ad/content insertion plugin, and its free version is already powerful enough. It supports:
- Inserting content by post, page, homepage, category, tag, and custom taxonomy (such as the “series” created by PublishPress Series).
- URL matching, device targeting, user roles, etc.
- Precise control over insertion positions (before/after content, between paragraphs, before/after comments, etc.).
My blog happens to use:
- PublishPress Series to manage article series (like the “Self-Hosted VPN” series).
- Polylang for Chinese-English bilingual support.
In theory, Ad Inserter works perfectly with them. However, during the actual configuration process, I fell into three major pitfalls, which I will explain one by one.
3. First Attempt: Using Category ID — Completely Ineffective
Many online tutorials say that you just need to enter the Category ID in the Taxonomies input box of Ad Inserter. So I first found the ID of the “Self-Hosted VPN” series (by looking at tag_ID=35606 in the backend URL when editing the series), and then:
- Opened Ad Inserter →
Block 1. - Found the
Conditionsinput box in theTaxonomiespanel. - Entered
35606(also triedseries:35606). - Saved.
Result: When visiting any article (including completely unrelated PHP tutorials), the CTA appeared at the bottom. It showed up on all articles, including those in the VPN series.
This means the series:35606 syntax was not recognized by the plugin at all. The plugin treated it as an empty condition and therefore inserted it into all articles by default. This has nothing to do with whitelist/blacklist modes; it was simply invalid.
This pitfall wasted half an hour of my time.
4. Key Breakthrough: Using Slugs + Toggle taxonomy editor
I stared closely at the Taxonomies input box and noticed a small icon on its left. Hovering the mouse over it displayed Toggle taxonomy editor. I clicked it, and a dropdown list popped up, listing all my existing series (such as windows-to-ubuntu, self-hosted-vpn, etc.).

(Screenshot 2: Backend, clicking the Toggle taxonomy editor filter box on the left side of Taxonomies pops up a dropdown list, which is essentially an Ajax request)

(Screenshot 3: Searching for “VPN” in the dropdown list yields no results. I didn’t figure out the reason, so I gave up for now)
I randomly selected a series (for example, windows-to-ubuntu), and the text box automatically changed to series:windows-to-ubuntu.
It suddenly dawned on me: the correct format is series:别名 (with an English colon), not a numeric ID.
So I manually entered series:self-hosted-vpn into Taxonomies.
But after saving, I found that all articles (except the VPN series) had the CTA at the bottom, while the VPN series articles did not.
This is because the small icon to the right of the Taxonomies box defaults to a black cross ✖ — representing blacklist mode.
The blacklist means: show this for all series except this one.
So I was essentially telling the plugin “add the CTA to all articles except the self-hosted-vpn series” — hitting the blacklist logic exactly.
I clicked that icon to switch it from ✖ to a black checkmark ✔ (whitelist mode).
After saving and refreshing the frontend — only the articles in the “Self-Hosted VPN” series had the CTA at the bottom, while the other articles remained clean.
Lessons learned:
- Use the
series:别名format, not numeric IDs. - The small icon on the left of each condition box determines the whitelist/blacklist mode. Make sure it is a black ✔.
5. Formatting Messed Up? Copying from the Visual Editor is a Trap
The CTA finally appeared only in the correct articles, but the formatting was completely messed up — no line breaks, lists disappeared, and headings were crammed together with the body text.

(Screenshot 4: The effect of the messed up CTA formatting on the page)
What did I do initially? I wrote the CTA in the WordPress post editor (visual mode), then selected all and copied it, pasting it directly into the Block 1 editor box in Ad Inserter. It looked normal in the Ad Inserter backend preview, but on the frontend page it became a blob of text.
Reason: The content copied from the visual editor contains WordPress Gutenberg block comments (like <!-- wp:paragraph -->). Although Ad Inserter preserves HTML tags, it does not parse Gutenberg blocks and sometimes loses line breaks.
Solution: Switch to the Code Editor mode.
Specific steps:
- In the WordPress post list, click the edit link.
- In the code editor for editing the post, you will see the complete code similar to this (CTA content):
html
<!-- wp:paragraph -->
<p><strong>拒绝折腾 | 专属 WireGuard VPN 代搭建服务</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>本频道长期实测各类网络优化方案。<strong>自用线路已连续稳定运行超过 1 个月,全程无掉线记录</strong>。如果你不想反复踩坑、折腾复杂的服务器与协议配置,欢迎联系我获取专属解决方案。</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><strong>服务内容:</strong><br>✅ <strong>远程代搭建</strong>:在你自己的服务器上部署专属 VPN,数据完全掌控,一劳永逸。<br>✅ <strong>免费试用福利</strong>:新用户可申请<strong>免费试用一个月我的自建节点</strong>,亲自体验极致的稳定性与速度。<br>✅ <strong>效果保证</strong>:深度优化分流规则,彻底解决日常使用中的卡顿与连接超时问题。</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><strong>联系方式:</strong><br>Telegram:@shuijingwan<br>微信:13980074657<br>邮箱:<a href="mailto:shuijingwanwq@gmail.com">shuijingwanwq@gmail.com</a></p>
<!-- /wp:paragraph -->- Copy this code.
- Go back to the Block 1 editor in Ad Inserter, click the Toggle tools –
Toggle Code generatorbutton on the editor toolbar, and switch to source code mode. - Paste the code.
- Save.

(Screenshot 5: Backend, copying the above code using the code editor in Block 1 and saving)

(Screenshot 6: Formatting is normal after saving, Insertion is set to After content)
At this point, the frontend page was finally normal — line breaks, bold text, lists, and links all displayed correctly.
Takeaway: Always copy content from the code editor into Ad Inserter; do not copy directly from the visual editor.
6. Insertion Position: After content vs After post
By default, the Insertion I used was After content. The CTA appeared at the end of the article body, before the comments section, and after the “previous/next” navigation. I felt it was too close to the navigation and wanted to move it down a bit.

(Screenshot 7: The final effect after deleting the duplicated CTA content at the end of all articles in the Chinese Self-Hosted VPN series, but noticing that the Block 1 content is a bit too close to the previous and next post navigation)
I tried changing it to After post — the result was as expected, putting more distance between it and the navigation.
I adjusted the Insertion setting multiple times to place the CTA at the end of the content but above the “previous post” navigation, only to find it very difficult to achieve. I decided to just leave it as is and accept the current state. If you are obsessive about this, you can use shortcodes to manually insert it anywhere, but I found this good enough.
7. Applying the Same Method to the English Series
The slug for my English “Self-Hosted VPN” series is self-hosted-vpn-en, and the series ID is 35608.
Create a new Block (Block 2):
- Enter
series:self-hosted-vpn-eninTaxonomies. - Switch the left icon to a black ✔ (whitelist).
- For
Insertion, I choseAfter postthis time (for comparison, but you can ultimately keepAfter content). - Copy the English version of the CTA code from the code editor:
html
<!-- wp:paragraph -->
<p><strong>Stop the Hassle | Custom WireGuard VPN Setup Service</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>I have been testing various network optimization solutions for a long time. <strong>My personal setup has been running continuously for over a month with absolutely zero downtime.</strong> If you are tired of troubleshooting and dealing with complex server configurations, feel free to reach out for a custom solution.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><strong>What I Offer:</strong><br>✅ <strong>Remote Setup Service:</strong> I will deploy an exclusive VPN on your own server. You keep full control of your data—set it once and forget about it.<br>✅ <strong>Free Trial:</strong> New users can apply for a <strong>one-month free trial of my self-hosted node</strong>, so you can personally experience the speed and stability.<br>✅ <strong>Performance Guaranteed:</strong> Deeply optimized routing rules to completely eliminate lag and connection timeouts in daily use.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><strong>Contact Me:</strong><br>Telegram: @shuijingwan<br>WeChat: 13980074657<br>Email: <a href="mailto:shuijingwanwq@gmail.com">shuijingwanwq@gmail.com</a></p>
<!-- /wp:paragraph -->
(Screenshot 8: Pasting the above code into Block 2, setting Insertion to After post, entering series:self-hosted-vpn-en, and adjusting Block 1 to After post as well)
Saved it, and the English CTA displayed normally at the bottom of the frontend English articles. Perfect!

(Screenshot 9: The final effect on the articles under the English series, as expected)
8. Cleaning Up Manually Added Old Code
Final step: Go to every article (both Chinese and English) under the “Self-Hosted VPN” series and delete the previously manually pasted CTA code. Otherwise, the page will display two CTAs (one manual, one automatic).
For batch processing, you can use the Better Search Replace plugin to replace all old code at once. I did it manually because I didn’t have many articles.
9. Summary and Recommendations
If you are also a WordPress blogger with similar needs:
- Automatically appending different content under different series/categories/tags
- Supporting Chinese and English multilingual content
- Not wanting to manually copy and paste every time
Ad Inserter + PublishPress Series + Polylang is a proven combination.
Here are a few core takeaways to share with you:
- Use slugs, not IDs: Enter
series:别名(with an English colon) inTaxonomies. - Whitelist/Blacklist: Pay attention to the small icon to the left of the text box. A black ✔ means whitelist, and a black ✖ means blacklist.
- Formatting: Copy content from the WordPress code editor and paste it into Ad Inserter’s source code mode (
Toggle Code generator). Do not copy directly from the visual editor. - Insertion position:
Afterpost is usually the most suitable. - Testing: Enable one Block first, confirm it is correct, and then configure the others.
Now I can write technical articles in peace, and the CTA will automatically appear where it should. Next, I plan to set up a different CTA for the “MySQL Performance Optimization” series to guide readers to contact me for database tuning services.
