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
Avataraguko
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
Avatartraversal
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
Avataraguko
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.2.8 is now available

It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.

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