Indexing issue when using Polylang with CPTs (index = 0)
-
Hi there,
I’ve encountered a consistent issue where Internal Link Juicer (ILJ) fails to index any content when both Polylang and a custom post type (CPT) are active. Everything works fine when used individually, but the index drops to zero as soon as both are enabled together.
Working plugin combinations (tested and confirmed):
- Internal Link Juicer + CPT UI → indexing works normally
- Internal Link Juicer + BetterDocs → indexing works normally
- Internal Link Juicer + Polylang → indexing works normally
- CPT UI + Polylang → works fine
- BetterDocs + Polylang → works fine
When all three are active (ILJ + Polylang + any CPT):
- ILJ’s index count (
Amount of links in the index) becomes 0 - The
Amount of configured keywordsremains correct - No internal links are generated
- Even regular posts and pages are not indexed
- Still, both Polylang and the CPT function correctly
(e.g., CPT posts and Polylang translations display normally)
Steps to reproduce:
- Install Internal Link Juicer, Polylang, and a CPT plugin (either CPT UI or BetterDocs).
- Create a custom post type using the CPT plugin.
- Create several posts in both the custom post type and the standard
posttype, including internal linking keywords. - Add languages in Polylang and assign them to all posts.
- Enable ILJ and whitelist the custom post types.
- Build the ILJ index → count is 0.
- Disable Polylang → index builds successfully.
- Re-enable Polylang → index drops to 0.
- Disable the custom post type → index builds successfully (CPT excluded, as expected).
- Re-enable the custom post type → index drops to 0 again.
Environment:
- WordPress 6.7.2
- Internal Link Juicer 2.25.1
- Polylang 3.6.7
- Custom Post Type UI 1.17.2
- BetterDocs 3.8.13
- Theme: Astra 4.9.0
All plugins and theme are updated to the latest version as of March 2025.
Issue was reproduced in a clean WordPress environment with no caching or optimization plugins active.Debugging steps already taken:
- Verified with clean install, only essential plugins activated
- Purged all cache / tried disabling caching plugins
- Switched to default WordPress theme (Twenty Twenty-Four)
- No errors in browser console or PHP logs
- Tested both CPT UI and BetterDocs
This issue first appeared when using BetterDocs + Polylang, but I was able to reproduce it with CPT UI as well — same result.
It appears that when both Polylang and a custom post type are active, ILJ fails to index any content, including standard posts.
Let me know if this is a known compatibility issue, or if there’s any workaround or patch I can test.
Thanks again for your great work on ILJ!
Best regards,
Linoo
The topic ‘Indexing issue when using Polylang with CPTs (index = 0)’ is closed to new replies.