Forums Forums Search & Filter Pro Post Meta and Tags Displays

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #39028

    I think it would work is if Tags were set as the default to display instead of Categories(which I’m not using) but I have no idea how to set that up.

    Anonymous
    #39407

    Hey Ross, any insight on this?

    Ross Moderator
    #39429

    Hi Christopher

    It sounds like the cache is not updated when something has been changed in FES – in this case you will need to trigger a rebuild of the current post using this action:

    https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/#Update_Cache_for_a_Particular_Post

    Thanks

    Anonymous
    #40043

    Hey looking a little deeper on another search form I found that the Tags selections made by a Vendor are not being logged at all by the search form.

    In the FES form I have a form for
    Tags:
    Id’s: 154,155,158, etc

    In the SF form I’ve selected
    Download Tags (download_tag): and the Id’s show the right tags. The data is just not synced up properly.

    You take a look here at the:

    http://www.lessonpick.com/general-esl
    Resource Type

    Also it looks like the count has old products in it, because it displays 3 for lesson plan – how do I clear the filter cache?
    And in firefox after upgrading for some reason all the text displays in all caps for selection items. A little confused by that.

    Appreciate your kind help

    Ross Moderator
    #40297

    Hey Christopher

    When a user updates any post in the wp-admin, the WP filter save_post is run.

    S&F hooks into this, so that whenever a post is changed in any way (tags, categories, taxonomies or post meta are updated), save_post is run, and S&F rebuilds the cache for that particular post.

    This also occurs when moving an item to the trash, or deleting permanently.

    So S&F will stay in sync with a post automatically.

    I’m actually not too familiar with FES, but I’m assuming because users of some type can change data associated with a post from the front end, that this may bypass the WP save_post hook.

    Therefor, whenever any change is made to any post, using FES, you must run the action:

    do_action('search_filter_update_post_cache', 23);, where 23 is the ID of the post.

    This should occur when deleting/adding anything at all..

    Have you made sure this is happening in your setup, because it sounds exactly like this is the issue that is occurring?

    If you have, can you provide wp-admin details, and direct me to what functions are called when a post is update in FES, and where you have attached the above code?

    Thanks

    Ross Moderator
    #43423

    Hey Christopher

    I was actually helping a user the other day and found the actions – pasted in case you needed them:

    add_action('fes_submission_form_edit_published', 'sf_edd_fes_submission_form_published', 20, 1); 
    add_action('fes_submission_form_new_published', 'sf_edd_fes_submission_form_published', 20, 1); 
    
    add_action('fes_submission_form_edit_pending', 'sf_edd_fes_submission_form_published', 20, 1); // this might not be necessary
    add_action('fes_submission_form_new_pending', 'sf_edd_fes_submission_form_published', 20, 1); // this might not be necessary
    
    function sf_edd_fes_submission_form_published($post_id)
    {
      do_action('search_filter_update_post_cache', $post_id);
    }

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)