Ross
Forum Replies Created
-
Ross Moderator in reply to:
Filter without a (visible) form(Private) January 22, 2021 at 8:06 pm #273751This reply has been marked as private.Ross Moderator in reply to:
Translating Filters – Display Results are: Post Type Archive(Private) January 22, 2021 at 8:02 pm #273747This reply has been marked as private.Ross Moderator in reply to:
Performance Issues with S&F Pro and WPML(Private) January 21, 2021 at 6:27 pm #273549This reply has been marked as private.Ross Moderator in reply to:
ACF relationship field doesn’t update filter options(Private) January 21, 2021 at 6:11 pm #273545This reply has been marked as private.Ross Moderator in reply to:
Limiting media search to just PDFs(Private) January 21, 2021 at 5:43 pm #273541Hi Phillip
I’ve had a good go but unfortunately it’s not going to work.
Things work well until we set the mimetype, and because a regular post has no mime type it doesn’t work.
I’ve tried quite a few different options, but as soon as its set, the posts are excluded.
The only way I could think of, to do a search conditionally like that would be to use something like Advanced Custom Fields plugin.
You could add a custom field, to your media – https://www.advancedcustomfields.com/resources/adding-fields-media-attachments/
And mark all media you don’t want, with a checkbox to “exclude from search” or something similar.
Then you can use our
post meta
tab (in the search form settings), to exclude the posts with this custom field… leaving the remaining combination of images + posts.Its not ideal I’m sure, but it’s the best I could come up with.
Best
Ross Moderator in reply to:
How Can I add event listener to all search menu positions(Private) January 21, 2021 at 5:04 pm #273529Hi Kamil
You can do this on your event listener:
switchAccordionAfterClick
Because it is on the
click
event, you can get some additional data about what was clicked on by adding the event to the function:switchAccordionAfterClick( event ) { console.log( event.target ); ...
You should find a bunch of data in there to help you get find the label or text, you can also try these:
textContent
– https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
innerHTML
– https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTMLBest
Ross Moderator in reply to:
Trouble With Results Showing Up(Private) January 21, 2021 at 4:59 pm #273527Hey Ryan
Are you all setup – ok to close this ticket?
Thanks
Ross Moderator in reply to:
Filter without a (visible) form(Private) January 21, 2021 at 4:55 pm #273525This reply has been marked as private.Ross Moderator in reply to:
Filter without a (visible) form(Private) January 20, 2021 at 3:28 pm #273323This reply has been marked as private.Ross Moderator in reply to:
Filter without a (visible) form(Private) January 20, 2021 at 3:09 pm #273317This reply has been marked as private. -
AuthorPosts