Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Display label at filter result.
- This topic has 7 replies, 2 voices, and was last updated 7 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
November 21, 2018 at 11:17 am #20023
webbkk
ParticipantHi,
Please see attached file.
I have custom field for airline and want to label display at result.
Please advise how I can’t do it.
PS. I try change return value type with ACF to array but the result display “Array”.Thank you.
November 21, 2018 at 11:27 am #20025webbkk
ParticipantDear Support Team,
I have more problem with custom taxonomy when display at result. It ‘s display with ID.
I want to show label. How can I do it?PS. First setting return value with “Term ID” and I try change return value to “Term Object” but the result non display.
Thank you.
November 21, 2018 at 2:31 pm #20038Ernest Marcinko
KeymasterHi,
I think you want to set the return value to ‘Label’ not the ‘Value’ on the ACF options, and then it will return the label correctly: https://i.imgur.com/0ijg2Jx.png
In the advanced content field, sinply use the {airline} variable, and that will work, it will list all airports, comma separated.Can you please be more specific about the taxonomy issue? Where exactly does that happen? I am not sure what are you reffering to. Thank you!
November 23, 2018 at 9:57 am #20072webbkk
ParticipantHi,
For airline it’s done.
And I problem with display custom taxonomy.1. Taxonomy name in ACF > Locations link
2. Taxonomy data > link
3. Display with search result > aI want to display with text.
I try change setting from return value with Term ID to Term object but result it’s blank.
Could you guide me for fix it?Thank you.
November 23, 2018 at 10:00 am #20073webbkk
ParticipantDear Support Team,
Can I add PHP or shortcode in content for display sear result?
Thank you.
November 23, 2018 at 11:43 am #20076Ernest Marcinko
KeymasterHi,
I think there might be a different solution to that. Have you tried the taxonomy advanced fields yet? If you have for example a taxonomy ‘location’, then you can use this in the advanced fields like so:
[code]{_taxonomy_location}[/code]
..and it will display the terms from that taxonomy in the results.You can use the results shortcode, within the template or post content to move the results to that location, on the same page.
November 26, 2018 at 8:30 am #20099webbkk
ParticipantHi,
It’s work. Thank you for support.
Thank you.
November 26, 2018 at 10:51 am #20105Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- The topic ‘Display label at filter result.’ is closed to new replies.