Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search result page doesnt show attachment right
- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 21, 2020 at 8:30 am #30822
emwi36
ParticipantHi!
When I search something and land on the search result page the attachment example PDFs dont open right.. The link shows: like pages /TEXT/ and the right link would be: /TEXT.PDF
How do we fix that? I just now has Elementor PROs Seach Result Page but its the same on wordpress original. Please not that the site is live!And if I search eg 0,189 that is a text in the PDF I get no result on the Search Result Page but I Get results on “mini-search”. I followed your guides for elementor pro so live search is triggered on the search result page.
-
This topic was modified 5 years, 5 months ago by
emwi36.
December 21, 2020 at 3:42 pm #30838Ernest Marcinko
KeymasterHi,
I believe there is an issue with the elementor posts archive widget – it does not support displaying attachments, at least it looks like it can’t. I have tried to debug this for over 2 hours now, and no matter what I do, attachments simply does not go to the search results.
If I turned off attachments, it seemed to work all right.December 21, 2020 at 3:49 pm #30841emwi36
ParticipantOK, If i remove Elementor Search Result page its the same. If a attachment is displayed the URL is like a post or page not .PDF (see attachment i previous post “Skarmklipp1.png”)
I talked with Elementor support and they say they its your part, they are showing only post and pages like wordpress original.So, your plugin does not show attachment in search result page, nor elementor or wordpress original, at all?
December 21, 2020 at 4:02 pm #30843Ernest Marcinko
KeymasterThe search plugin does not do any displaying, it only pushes the items for display on the results page. The rest is up to the results page. If the results page is not capable of displaying attachments (or simply removes them from the list), there is unfortuantely nothing we can do about it.
I tried to forcefully change the post type from “attachment” to “page” and “post” when the results loop is sent to the results page – but that did not help either.
December 21, 2020 at 4:06 pm #30845Ernest Marcinko
KeymasterMost themes should support that – for example the default wordrpess theme, twenty twenty one can do it.
December 21, 2020 at 9:49 pm #30855emwi36
ParticipantOk, ill talk to Elementor support again. Do you have any hacks for opening all attachments (PDFs) in new tab or window?
edit: when i removed elementor search result page this worked: http://eyks.com.au/open-pdf-in-new-tabs-wordpress/
-
This reply was modified 5 years, 5 months ago by
emwi36.
December 21, 2020 at 10:10 pm #30856emwi36
ParticipantHi again! It was not the theme, removed elementor search result page and edited themes seach result page and now it works.
-
This reply was modified 5 years, 5 months ago by
emwi36.
December 22, 2020 at 10:44 am #30864Ernest Marcinko
KeymasterGreat 🙂
-
This topic was modified 5 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.