Help with live search

Posted in: Newspaper
Post count: 54

Hello,

I’m using live search on my website and the site also has ACF installed and custom taxonomy for movies. I’ve noticed that I can add sections to my live search results module. Basically, I want to add searches related to my taxonomy under a section (movies) and another section with the site’s posts. However, I played around with the sections option in Composer and for the life of me, I can’t figure it out how to make this work. Nothing is displayed related to those sections. I tried to find it in the Newspaper documentation, but I couldn’t find anything related to the sections.

I also have no idea what “Level” means within the sections, but even if I write “1”,”2″ etc..nothing happens.

https://app.screencast.com/CZIaKghjzu2Kj

  • This topic was modified 2 years by vexx.
Post count: 27744

Hello,

Please make sure that you have correctly set the name of the taxonomies -> https://i.imgur.com/oJ4N6vb.png

Thank you!

Post count: 54

Thank you for your response. Indeed, this works. However, I want to display posts from that custom taxonomy and general articles from the site, in another section. Can I add more than 1 Post type in the live search? If I add the ACF post type, it creates the sections I want to display via the fields. I just want to add articles as well from the site to the search.

Thank you in advance!

  • This reply was modified 2 years by vexx.
Post count: 27744

Hello,

Unfortunately, you can’ set more post types on the same element.
You can create two headers and set for cpt a header and for posts another header.

Thank you!

Post count: 54

Ya, that’s a decent workaraound. Thanks for your time!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.