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 2 years, 9 months ago.
- AuthorPosts
- August 25, 2020 at 5:00 pm #29099
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.
-
This topic was modified 2 years, 9 months ago by
smittelstaedt09.
-
This topic was modified 2 years, 9 months ago by
smittelstaedt09.
-
This topic was modified 2 years, 9 months ago by
smittelstaedt09.
August 26, 2020 at 9:52 am #29120Hi,
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 :)
August 26, 2020 at 10:43 pm #29144I didn’t notice you had added the Ajax Search Pro Settings box at the bottom to help me compensate for this issue. Thank you.
August 27, 2020 at 9:50 am #29154 -
This topic was modified 2 years, 9 months ago by
- AuthorPosts
You must be logged in to reply to this topic.