• Resolved webcreativemaster

    (@webcreativemaster)


    Hi, I have successfully indexed custom post types and taxonomies. I am able to synced all the contents on the first index.
    – Post Title
    – Post Thumbnail
    – Post Content
    – Custom Post Field
    – Taxonomies

    Upon updating or creating new post, the typesense plugin manage to sync the following fields automatically:
    – Post title
    – Post Content
    – Custom field
    – Taxonomy

    However, it fails to sync the post thumbnail or featured image. Is there some issue with plugin or is there something that I need to redefine?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @webcreativemaster ,

    The post thumbnail should be automatically indexed, we have post types indexing enable on our demo website

    So there is a default format for the way data should be indexed, if you are indexing with custom code then you need to add to the options instead of replacing it completely.

    Please check example implementation in our documentation

    If for some reason things are still not working, please check

    • Schema for your post types
    • Debug Log

    If both of these results don’t show you why – please provide the code you’ve used so that i may inspect it.

    Thread Starter webcreativemaster

    (@webcreativemaster)

    Hi I am using this filter: cm_typesense_data_before_entry.

    Is this the correct implementation? My thoughts is that this is not required if it is post thumbnails.

    if ($src = wp_get_attachment_image_src( get_post_thumbnail_id( $object_id ), 'full', false )){
    $formatted_data['post_thumbnail'] = $src[0];
    }

    Edit: I re-tested this and it didn’t work.

    Thread Starter webcreativemaster

    (@webcreativemaster)

    After rechecking many times, I realise that if I were to add my custom post type article from the wordpress, the thumbnail is actually updated. It didn’t work when I use formidable form to post from frontend.

    To solve this problem, can I check, is there a snippet or function for re-indexing that I can trigger after I submit a form frontend?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Type – Post Thumbnail not updated’ is closed to new replies.