Combining Dynamic content with text

Hello – I am looking to build a URL using some static text + some dynamic content. In my case, I am looking to use the category slug {{dc:term:slug}} to build a URL for a background video link. If I use the term just as it is, it looks to expand OK. But if I pre/a-ppend text to it, then it does not expand (I get something like “/wp-content/uploads/2021/04/dc:term:slug.mp4”.

In other words, In a single post layout, I have a element background lower layer and I am selecting it to be a video. If the first category of the post is news, then I’d like the video URL to be “/wp-content/uploads/2021/04/news.mp4”. If the category is portfolio, then I’d like the video to be pulled form “/wp-content/uploads/2021/04/portfolio.mp4”. Hope this makes sense.

HI @rkaramchedu,

Thanks for reaching out!

To combine the dynamic content with text, just write something like this.

/wp-content/uploads/2021/04/{{dc:term:slug}}.mp4

Hope that helps.

Thank you.

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