Forums › Forums › Search & Filter Pro › Display results of image search
Tagged: image keywords, image search, result page
- This topic has 6 replies, 2 voices, and was last updated 8 years, 8 months ago by
Anonymous.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Trevor(Private) March 9, 2017 at 4:42 pm #95800
Hi Ernst, hopefully that helped you move forward. To help others, you have a taxonomy called
attachment_keywordand wanted to output the list of terms for each post in ourresults.phptemplate (in this case with a comma and space after each. So this was the HP:<?php $all_att_kw = ""; foreach (get_the_terms(get_the_ID(), 'attachment_keyword') as $att_kw) { $all_att_kw .= $att_kw->name . ", "; } echo "<p>" . substr($all_att_kw, 0, -2) . "</p>"; ?>Can I close this thread now?
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)