WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    Get WPFTS Pro today with 25% discount!

    [Solved] How to index new posts which was added by the script?

    Scheduled Pinned Locked Moved Recipes and Known Solutions
    reindexscriptsearch
    1 Posts 1 Posters 729 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EpsilonAdminE
      EpsilonAdmin
      last edited by EpsilonAdmin

      Q: We have a script which is adding new files to the WP Media Library in a timely manner, using a cron job. Those files not shown in the search I guess because they are not indexed. We have to log in once in a couple of days to Rebuild Index manually. Is there any better solution to fix this?

      A: Yes. Normally when you're editing or adding posts/attachments manually (via WP Admin), each "Save" button click triggers the WP hook "save_post" which is forcing WPFTS Pro to rebuild the index for this particular post.
      In case you're making changes by some script, you have to include this code to your script (after all post changes)

      wpfts_post_reindex($post_id);
      

      This will force reindex of this particular post so you never need to Rebuild the whole index after post changes.

      https://e-wm.org

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Suggested Topics

      • EpsilonAdminE

        [Solved] The files excerpt is not visible in Scientia Theme

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
        1
        0 Votes
        1 Posts
        432 Views
        No one has replied
      • EpsilonAdminE

        [Solved] Exclude some PDF from results when using Download Monitor

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
        1
        0 Votes
        1 Posts
        704 Views
        No one has replied
      • EpsilonAdminE

        [Solved] Polylang limits search by language taxonomy

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions fix patch polylang search taxonomy
        1
        0 Votes
        1 Posts
        765 Views
        No one has replied
      • EpsilonAdminE

        Is it possible to make 2 different searches on the same website?

        Watching Ignoring Scheduled Pinned Locked Moved Frequently Asked Questions multiple search widgets presets filters
        1
        1 Votes
        1 Posts
        897 Views
        No one has replied
      • EpsilonAdminE

        How to search posts by shortcode content in Wordpress?

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions feature indexing search shortcode
        1
        0 Votes
        1 Posts
        1k Views
        No one has replied

      Additional Resources

      • My Account
      • Buy WPFTS Pro
      • Community Forum
      • Affiliate Program
      • Privacy Policy
      • Terms & Conditions
      • Contact Us
      • Coupon Partner

      Be the first to read the news!

      We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

      Join Us Now!

      We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

      We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

      ewm-logo-450

      The forum powered by NodeBB | Contributors