Site logo

Archived topic

Using Shortcode in Search Results Loop

3 replies · Started by Christian on December 15, 2022

Viewing posts 1–4 of 4

Dear support forum :-)

I am currently trying to build the search results with a Loop template and dynamic blocks. This is working fine so far. But I want to generate a custom breadcrumb path for each result (loop item). I tried to insert a custom shortcode but I am not able to fetch the post id (global $post returns same array every time the shortcode is called). Another idea is to manipulate "List of terms" dynamic data, but I cannot find the right filter to hook into this.

I would appreciate some help!

Thanks in advance and best regards,
Christian

Great hint, will give it a try! Thanks, David!

You're welcome

This archived topic is closed to new replies.