Jump to content

tagging function - how do I get tags and then show them?


dachshund

Recommended Posts

Hi,

 

I'm using process wire as a base CMS and am trying to create a tag list from a free text area in the admin.

 

I have been able to get all pages with 'tags' and then explode them into an array:

 

 

$matches = $pages->find("template=post");

foreach($matches as $key => $tag){

$tags = explode(",", $tag->tags);
}

 

What I can work out is how to consolidate all the tags into one array comparing it to see whether it already has that tag it or not...

 

Any help would be great, thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.