Separator at RelatedTerm

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
May 27, 2013 at 1:40 pm #3081
aguko
Post count: 43

Can I separate each with separators (comma etc.) to display two or more terms by RelatedTerm?

https://www.masterpressplugin.com/docs/developer/methods/mpft-related-term-terms

May 28, 2013 at 10:46 am #3091
traversal
Post count: 207

Hey there, if you’re trying to display a comma-separated list of the names of the taxonomy terms in a Related Term field, you can do something like this:

http://pastebin.com/SZnrhq8M

This is because for Related Field terms that support multiple items, you can call on any of the methods in the WOOF_Collection class for the collection of terms entered into the field:

https://www.masterpressplugin.com/docs/developer/classes/woof-collection

May 28, 2013 at 2:05 pm #3092
aguko
Post count: 43

Thanks!
I succeeded!

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

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.4.1 is now available

27th May 2024

This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6. We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM