Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterGood news, found a possible solution it should be okay now.
Please keep this in your functions.php file:
add_filter( 'asp_pre_get_front_filters', function ( $filters, $type ) { foreach ($filters as $k => &$filter) { if ( $filter->type() !== 'custom_field' || $filter->field() !== 'attribute_model-size' ) { continue; } $items = []; foreach ($filter->get() as $kk => $item) { $items[intval($item->value)] = $item; // Remove the current item by array ID $filter->remove($kk, true); } unset($item); ksort($items); foreach ( $items as $item ) { $filter->add(array( 'label' => $item->label, 'selected' => $item->selected, 'value' => $item->value )); } } return $filters; }, 10, 2 );Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou are welcome!
Also, I forgot two more things:
– The results highlighter is set like this: https://i.imgur.com/futSc5g.png
– And also the description context: https://i.imgur.com/pj2EkVy.pngErnest Marcinko
KeymasterSure!
– I have disabled Ajax Search Lite and Enabled Pro: https://i.imgur.com/b5mA4hK.png
– On the index table I choose this configuration and indexed: https://i.imgur.com/3iFUkin.png
– On the search instance settings I selected the index table and choose only posts and pages: https://i.imgur.com/GqPXZcR.pngErnest Marcinko
KeymasterHi,
The FAQ post type is most likely only for storage purposes, as those items does not have actual post type pages, they are integrated into the page itself – meaning that they are not meant to be searchable individually.
It goes to this link.. which is not correct it suppose to take the section where the actual faq mentioned.
That’s unfortunately not possible to do that way as the faq links are in no relation to the page where are placed on, WordPress will always return the FAQ links, which are non-existent pages.It might be possible to index the FAQ contents as contents of the resources page within the Pro version via the Index Table engine. However please note that in that case not the individual FAQ items will be returned but the resources page itself.
I have configured that it for you, and enabled the pro version. Now the FAQ will be found in the corresponding page and highlighted and scrolled to it, please see:

This is as close as it can get without major customizations. It may not work perfectly in all cases, as this is not designed for such use case at all.
If you need an in-page search engine, that needs to be fully custom coded.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
I couldn’t log-in to check, the page is in preview mode: https://olive-kingfisher-579319.hostingersite.com/search-text/?preview_id=2012&preview_nonce=4eb5a7bdbd&preview=true
Can you pleae check the login details?
-
AuthorPosts