Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
Keymasterregarding excludes, I’ve tried the attached, but perhaps I’ve got the format/field wrong? My goal is to exclude any Sold status and/or any “afs” labeled listings.
I see. Is that “sold” status a category or a taxonomy of some sort? If so, then it explains why the sold items still appear, as changing the category of the property will not remove that dealer from the databse.
It may still be possible programmatically in some way. Let me know, and I will try to look for a custom code snippet or similar if possible.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Seamus,
This one is a very tough one, but I think I see the problem. As far as I can tell, you are trying to reatain the results opened, when the user closes the modal via the “Back to Results” button. However there is a setting for that here. When that option is turned off, the results will not close whenever the user clicks away from the container.
Therefore you can simplify the closeModal function like so:
function closeModal() { const $modal = $('#artwork-zoom-modal'); $modal.attr('data-stage', '1'); $modal.css('display', 'none'); $('.artwork-modal-bg-stage1, .artwork-modal-bg-stage2').addClass('hidden').css('display', 'none'); $('.artwork-modal-stage1, .artwork-modal-stage2').addClass('hidden').css('display', 'none'); $('body').removeClass('modal-open overflow-hidden'); }I’m almost a 100% sure that this is going to fix the issue, as the visibility was all over the place in the original closeModal function, which caused the problem with the isotope recalculation.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterNo worries, I am more than happy to help!
ah, I think the key may be in this section? (this screenshot from our live site, where I’m exploring the plugin options so as not to disturb anything you may be working on in the dev site)
Yes, that is the section for the custom field filter I made for the architects.In the dropdown, we’d like to see only the CalDaily labeled/type listings’ associated architects, and many Sold/afs listings are appearing. I’ve tried Advanced->Include/Exclude, but this doesn’t seem to have any effect. At the end of the current dropdown, even after the above step, “XY Architects” (as example) is still showing, even thought it is Sold and not a CalDaily listing. However when that architect is clicked, No Results appears, which is correct, I just need to figure out how to exclude XY Architects (and any other Sold or afs listings) from the dropdown entirely. A couple iterations I’ve tried on the dev site are screenshotted here.The way that it works at the moment is, if you open the filter settings, then you will see the value is set to {get_fields}, which means it will grab the values automatically from the database. It accepts an “exclude” argument, where you can specify a comma separated list of values to exclude from the automatically fetched list, like so:
{get_values exclude="value1, value2"}The index is updated automatically whenever a post is added, updated, deleted etc.. The dropdown value is however not affected by the index, as it is pulled directly from the database. Any existing value that exists in the database should be there. In case you have any type of cache active, it may delay that a bit, but it is always directly fetched from the database itself.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Seamus,
It depends on what is the exact value stored in the field. If it’s a boolean, or a conversion of boolean to string “true” or “false”, then your code will not work, as this check fails:
// Check if the field exists and is truthy (1, "1", true, "yes", etc.) if ( !empty($available) && $available !== '0' && $available !== 0 ) { return $post; }Assuming the value can be a boolean string, then try the one below, it covers all possible type coercions:
if ( $available !== 'false' && $available ) { return $post; }Ernest Marcinko
KeymasterHi!
Well, these are indeed very specific, but it entirely depends on how these are implemented.
I recommend looking at the frontend filters API. That contains information on how to add/alter filters on the search settings list.
December 20, 2025 at 10:32 am in reply to: Downgraded WordPress from 6.9 to 6.83 and Ajax quit providing results #56615Ernest Marcinko
KeymasterAll right, it must have been only a cache related issue then.
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 Scott!
-
AuthorPosts