Forums Forums Search & Filter Pro Post meta values aren't added automaticaly after import

Viewing 10 posts - 1 through 10 (of 14 total)
  • Trevor
    #42161

    The posts are important as unpublished? Or with a future publish date?

    Anonymous
    #42229
    This reply has been marked as private.
    Trevor
    #42232

    I understand the issue. The Search & Filter Pro cache is not seeing these post as having been changed and thus does not make changes to the cache for them. as soon as you edit the post and hit update, without making any changes, the posts are flagged as having been changed and thus the cache knows to update itself for each post.

    I have not done this for some time, but last time I had to do something like this I used a plugin:

    https://wordpress.org/plugins/custom-bulkquick-edit/

    I selected all the posts, made no changes, and hit the update button. Maybe that would work for you?

    Anonymous
    #42236

    I tried, but no luck. I tried this earlier (bulk edit then Update) without plugin, still didn’t get any results. Maube this can help: if I select to manually populate post meta (instead of automaticaly), I get all values, but I don’t want to populate filter manualy, because there’s a lots of data in filters updated regulary.

    Trevor
    #42240

    Are you able to give me admin logins to a live site so that I can take a more detailed look into this for you? You can reply here, but use the private reply option at the bottom of the post.

    Anonymous
    #42242
    This reply has been marked as private.
    Trevor
    #42244

    You will need to trigger our cache as each post inserts, using an action from WP All Import. This code would go into your child theme functions.php (if you haven’t made a child theme, you need to follow the guidance for the theme you have, or the generic guidance from the WordPress Codex and/or the many Internet guides on it):

    add_action('pmxi_saved_post', 'post_saved', 10, 1);
    
    function post_saved($id) {
      do_action("search_filter_update_post_cache", $id);
    }

    Sadly, any that are already imported cannot be caught by this.

    Anonymous
    #42245

    Ok, thanks, I will try that localy and let you know if that works.

    Anonymous
    #43019

    Hi Trevor,

    unfortunately, it doesn’t help even when I emptied complete shop and make fresh import. Also, on live website, I tried to go through each and every product and update manualy (clicking on Update), some of the meta values shows then dissapear right after and I still doesn’t have them in the list. I also tried to create new filter from scratch, but same things occured – no luck. it still counts 0 for thoose meta values even through products listed with that meta value in wp query I used to test.
    Any thoughts? Thanks.

Viewing 10 posts - 1 through 10 (of 14 total)