Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom Fields in Search Results › Reply To: Custom Fields in Search Results
September 1, 2020 at 6:08 pm
#29210
Participant
Thanks Ernest,
I’m basically trying to display a custom taxonomy (AUTHOR) term name at the bottom of each result, but I also want to manipulate the URL to link to another page with a similar slug, so it seems the best place to do this is in a child template?
So far I’ve tried this:
<a href="/our-people/<?php echo str_replace(' ', '-', strtolower('Term Code To Replace')); ?>">
<div class="card-author">
<?php echo $r->id; ?>
</div>
</a>
So if I wanted to display a custom taxonomy term, how would I code that?
I also noticed there is an overlay span to link the entire result – can this be turned off via the plugin or just via css?
Thanks!
-
This reply was modified 5 years, 9 months ago by
RebeccaSidery54.
-
This reply was modified 5 years, 9 months ago by
RebeccaSidery54.