bruffridge
Forum Replies Created
-
Forum: Plugins
In reply to: [HTTP Authentication] login_redirect filter not workingnevermind the redirect filter is working.
Found the answer to fix my issue on another support thread.
https://wordpress.org/support/topic/not-auto-indexing?replies=4#post-6615493Yep, looks like on line 9 of init.php the indexer only fires on wp_insert_post and does not run on calls to update_post_meta.
add_action(‘wp_insert_post’, ‘relevanssi_insert_edit’, 99, 1 ); // added by lumpysimon
I think I know what’s happening. I use custom code to insert my custom post. I call wp_insert_post, which is probably what kicks off the relevanssi indexer. THEN I call update_post_meta to set the custom field. I don’t think calls to update_post_meta kick off the indexer. Any suggestions on what I can do to make the indexer index my custom field for new posts?