Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › I can order the resoults
- This topic has 28 replies, 2 voices, and was last updated 4 years, 1 month ago by
Ernest Marcinko.
-
AuthorPosts
-
March 22, 2022 at 4:20 pm #37259
Angel Nuñez Gonzalez
ParticipantI don’t think did you understand
I have this CPT and I want then to apear on this order …
Sala – Discos, clubs, Bars – CPT
Lugares – Museun, turistic place, village, CPT
Playas – beaches CPT
Restaurantes – CPT
Negocios – Business -CPT
Post , News – native wpSear for PACHA ( it the name of club )
Results give
PACHA IBIZA (Sala cpt) nº1 OK
Rest o restaurants and Hotels from Pacha Brand OK
News from pacha ( the lates news ) OKI need this order because if some one search for the name of any Restaurant or Hotel, or sala .. first will be the place and then the news bout the place …
BUT iF
Search For SAN JOSE ( name of a area in Ibiza , also the name of a Village )
First show all the LUGARES in SAN JOSE Area .. including the Village call San Jose OK
Second all the beaches in San Jose area ok
Page 3 -8 .. Restaurants in San Jose ok
NOT NEGOCIOS ARE SHOW .. WHY ???
Page 8 star the first NEWS posts
https://welcometoibiza.com/agenda-ibiza/noticias/san-jose-otorga-ayudas-al-alquiler-de-hasta-2500-euros/ From 1-2022 NOT THE LAST ONE PublishedAnd on the AJAX never show any thing else that 3 old news
ThanksMarch 23, 2022 at 10:22 am #37269Ernest Marcinko
KeymasterHi,
I understand – the reason is still the option I mentioned previously. The plugin will prefer that post type order – and if there are more relevant matches from the preceeding groups, then those are shown.
You maybe want to look into enabling this one: https://i.imgur.com/80kpwjv.png
With that, the plugin will try to divide the results between each post type group equally. In your case, you have 7 post types selected, and 100 items to show overall. It will display then 100/7 ~= 14 items from each group. It will make sure to display matches from every post type group.
March 23, 2022 at 10:38 am #37276Angel Nuñez Gonzalez
ParticipantSorry but you don’t get it …
By now iits ok I need it like that
BUT ON SAN JOSE SERACH
WHY NOT SOWING NEGOCIOS ???
WHY THE NEWS (post) are old post
???March 24, 2022 at 11:17 am #37291Ernest Marcinko
KeymasterIt lookls like the “zona” taxonomy was not indexed. I have selected that as well: https://i.imgur.com/0Vroc4g.png
That contained the location information like “san jose”. I can see a bit different results now, do you see items from negocios?March 24, 2022 at 2:25 pm #37298Angel Nuñez Gonzalez
ParticipantHi
Did you change any thing else ? I NEED THE ORDERING ON , trim it on and now look ok ::
Now with the order on Show negocios an New post firstAny way to show the post filter in a Horizontal way ? like That ?
March 24, 2022 at 2:32 pm #37300Angel Nuñez Gonzalez
ParticipantAnd also Show the filter only in the Results page as a option wi be great
I mean Horizontal not like that
thanksMarch 25, 2022 at 2:37 pm #37311Ernest Marcinko
KeymasterYou can use the filter on the results page only via adding the settings shortcode to the results page only, and turning off the settings visibility by default.
For the horizontal view, you can try this custom CSS:
.asp_ss form[name=options] { display: flex !important; } .asp_ss form[name=options]>fieldset { max-width: 10000px !important; min-width: 100% !important; } .asp_ss form[name=options]>fieldset .asp_simplebar-content { display: flex !important; flex-wrap: wrap; } .asp_ss form[name=options]>fieldset .asp_option { margin-left: 0 !important; } .asp_ss form[name=options]>fieldset .asp_option_label { white-space: nowrap; }March 25, 2022 at 3:13 pm #37312Angel Nuñez Gonzalez
ParticipantThnaks , Look great now and I think also works as I need
Could I have also the css for te ratio button ?
thanksMarch 25, 2022 at 3:17 pm #37313Ernest Marcinko
KeymasterThat CSS should very likely work with the radio buttons as well.
April 7, 2022 at 5:31 pm #37447Angel Nuñez Gonzalez
Participantnot Do not work
April 8, 2022 at 1:46 pm #37458Ernest Marcinko
KeymasterMaybe I am looking at the wrong plugin revision.
Can you please try replacing the
wp-content/plugins/ajax-search-pro/includes/views/filters/post_type/asp-post-type-radio.phpfile contents on your server with this.
This is a newer revision, I almost sure the custom CSS will work with this.April 8, 2022 at 6:25 pm #37460Angel Nuñez Gonzalez
Participantgreat now looks great
with this now I can solve most of my problems …
ThanksAlso any way to not use the Ajax result ??’ there don’t show my relevant .. If I could search just the the user click on search for my will be great
thanksApril 10, 2022 at 10:01 am #37463Angel Nuñez Gonzalez
ParticipantHi
I just realice that now all the ratio an check are horizontalI need to choose when its show in horizontal o vertical
In here have to be vertical because there is column
https://welcometoibiza.com/guia-ibiza/
https://welcometoibiza.com/restaurantes-ibiza/
https://welcometoibiza.com/descubre-ibiza/
https://welcometoibiza.com/playas-y-calas/April 11, 2022 at 2:07 pm #37471Ernest Marcinko
KeymasterWell, that may need to be custom coded differently, maybe to use a custom CSS loader for the pages where you need the horizontal layout.
Maybe you can add the custom CSS via Elementor to the pages only, where you need it? -
AuthorPosts
- You must be logged in to reply to this topic.