Index dynamic block content like post grid

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Index dynamic block content like post grid

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29099
    smittelstaedt09
    smittelstaedt09
    Participant

    Your plugin is spectacular!
    I understand your plugin executes shortcodes, but I’m wondering about content included into pages via Gutenberg blocks.

    For example: I show the contents of the Leadership post category in a list on the Leadership page via a Gutenber block.

    The Leadershp page doesn’t appear when searching for one of the leadership team members.
    Only the member’s profile blog post shows up.

    I added another field to the custom block to manually enter some keywords, but that didn’t appear in my search after rebuilding the index. I’m curious if you have come up with some ingenious way to see/index dynamic block content like the a site visitor would see it.

    Example block code with some “keywords = names and titles of the leadership team” added.

    
    <!-- wp:lazyblock/posts {"content":"content","category":"leadership","order_by":"menu_order","show-toc":false,"show-faqs":false,"anchor-divider-margin":30,"anchor-divider-padding":40,"image-alignment":"inline-right","keywords":"Bill Hahn Chief Executive Officer Clark Curry Chairman of the Board Martin Ohlson President Wayne Morrow National Field Director","blockId":"22fFf8","blockUniqueClass":"lazyblock-posts-22fFf8"} /-->
    

    THANK YOU AGAIN for your wonderful plugin.

    Followup: I set my block to save the keywords as a meta field, then included that in the index table = work around.

    However, it would still be cool to figure out how to index dynamic block content to avoid the maintenance challenge of constantly updating post keywords in the desired display page.

    #29120
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you very much for your kind words!

    I’m afraid this is not possible, and probably won’t be possible in the future either. Dynamic blocks usually load their contents when the page is viewed in a browser, and load the content asynchronously. The plugin however cannot do that, but instead it requests the post contents before they get printed to the browser – however in that state these type of blocks are usually not rendered yet.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #29144
    smittelstaedt09
    smittelstaedt09
    Participant

    I didn’t notice you had added the Ajax Search Pro Settings box at the bottom to help me compensate for this issue. Thank you.

    #29154
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Great 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.