Support

Account

Home Forums Front-end Issues How do I wrap Term IDs in SPAN tags (for formatting)

Helping

How do I wrap Term IDs in SPAN tags (for formatting)

  • I am using the Taxonomy field type for selecting (knowledgebase plugin) categories to return Term IDs on my page and it is working perfectly.

    What I don’t know how to do however, is how to wrap those IDs in <span> tags so that I can style each Term ID – in place of the commas that are currently seperating them.

    Any help would be hugely appreciated.

    Thanks,
    Karen

  • Hi @designseednz ,

    Thanks for reaching out to us.

    You could store the values in a variable first and then use the PHP split function to create an array thus be able to access specific elements.

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How do I wrap Term IDs in SPAN tags (for formatting)’ is closed to new replies.