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 7 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 8, 2017 at 8:45 pm #95618
So far I am able to display the results of an image search. Joking I would say , 30% is already there. Some Description. I want to display the images. Ideally being flexible regarding the size. I am using WordPress 4.7.3, Kinetika as a Theme.
The search covers media and the taxonomy attachment_keyword.
Search Form https://ernst-wilhelm-grueter.de/bildersuche
Display results https://ernst-wilhelm-grueter.de/bildersuche-ergebnisTrevor(Private) March 9, 2017 at 4:42 pm #95800Hi Ernst, hopefully that helped you move forward. To help others, you have a taxonomy called
attachment_keyword
and wanted to output the list of terms for each post in ourresults.php
template (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