How to index unindexed content through PHP code?

[ad_1]

To index unindexed posts, use

relevanssi_build_index( true, false, 100 );

where 100 is the number of posts to index at one go. How high you can go depends on various details; you want the number to be as high as possible but low enough that PHP doesn’t time out while the indexing is still going. Start from 100 and see where that gets you.

Post types and the rest come from Relevanssi indexing settings and don’t need to be specified here.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer