This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Custom Fields in Search Results

#29210
RebeccaSidery54RebeccaSidery54
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!