Movable Type: Specify only one keyword from MTEntryKeywords

Posted by kohei on Stack Overflow See other posts from Stack Overflow or by kohei
Published on 2010-06-09T06:03:07Z Indexed on 2010/06/09 6:22 UTC
Read the original article Hit count: 208

Filed under:

Hi,

I have several keywords (1~3 words) stored in <MTEntryKeywords> field separated by commas. I want to take out the first keyword from MTEntryKeywords.

Example 1:

In the Keywords field I have entered: gadgets,phone,apple,

Want to display: gadgets

Example 2:

In the Keywords field I have entered: food,coffee,apple,

Want to display: food

Any ideas?

© Stack Overflow or respective owner

Related posts about movabletype