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.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

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