- April 22, 2023 at 1:53 am #42259
I’m trying to re-create the staff search:
I can’t make mine display the additional info – In your staff search example om the website, it shows Department, and Languages.
What are these? Taxonomies? Tags? Custom Fields?
I’d like to set up so mine shows data pulled from ACF Custom Fields beneath the Post Name.
So how do you have it set up in the staff search demo?
My search page is currently located here:
I followed the Tutorial you have on here:
But it did not mention anything about displaying the staff members Department or Language
Thanks!April 24, 2023 at 9:21 am #42263
In the example we are using categories and tags for the filters – it is detailed in steps 2-4 in the tutorial.
You can do that same with custom fields too. For those I recommend checking the custom field filters section. Those are probably even a bit simpler to setup and easier to use as taxonomy terms.
I generally recommend using taxonomies for reusable data – for example languages, categories etc.. You can assign the same language to multiple posts, and in that case it is more efficient to use taxonomies, as the storage is simpler. For more random or numeric or date data it is better to use custom fields, as the data is more variable, and is less reusable.
Either way, using custom fields for everything is still perfectly fine, as long as you are not planning to have a huge amount of posts (like 100 000+). In those cases it is very important to use the most efficient data structures, but for regular uses it is fine to have the most convenient setup for yourself or the client.
I hope this helps!Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.