Custom Looper variable params

In your documentation for custom loopers you can send parameters via json params like

{
  "url" : "https://your-api"
}

Is it possible to make this variable? for example like:

{
  "url" : {{dc:post:meta key="url"}}
}

Hi @Regnalf,

Thanks for reaching out.
The custom parameter can accept the dynamic content but it should be sent within the double quotes as a string. I have tested the following format which works perfectly.

{
    "parent_cat":"{{dc:post:id}}"
}

In your case, you may need to adjust it a little bit like the following.

{
    "url" : "{{dc:post:meta key='url'}}"
}

Hope it works.
Thanks

Perfect, thanks.

I just wondering because there is no dynamic content button in the json editor. Maybe this could be added in an future update?

@regnalf

Hey @Regnalf,

I have added this as a feature request. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.