XF 2.1 Get the value of the first tag_url to use in thread_list_macros

HJW

Active member
A very silly question, but what's the correct way to get the first tag_url value to use in thread_list_macros? I can see that the data is available in the $thread var

"tags" => "{"2":{"tag":"tag 2","tag_url":"tag_two"}}"

But struggling to get the syntax right? I've tried lots of variations of below but after half an hour the right way eludes me

$thread.tags[0].tagurl

Thanks
 
Thanks, but that's returning null for some reason? And so is dumping $thread.tags.1

Dumping $thread.tags shows this, is it something to do with the thread id maybe?

1603900669991.png
 
Top Bottom