Only get the first word of meta data.
-
https://fretmill.com/category/acoustic-guitars/
I have managed to set this up so that I can click on “New” “Used” or “Cons” in the table and show only the rows with matching condition, but if I try the same thing with the Brands it only works with Brands that are only one word. Is there a way I can get
get_post_meta( get_the_ID(), 'brand', true );
to only output the first word of the meta value?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Only get the first word of meta data.’ is closed to new replies.