Forum Replies Created
-
AuthorPosts
-
pbpyrojust18
ParticipantI fixed the issue we were having. It was a CORS Policy cross domain issue. No need to try to hack something together. Everything is working correctly now. Thanks for your info.
pbpyrojust18
ParticipantThanks for that info. Is it at least possible to create a WordPress hook to change the value of
"admin_url" => admin_url(),or make it relative so it doesn’t use an absolute URL?pbpyrojust18
ParticipantOkay great. I will give that shot and let you know how it goes. Now how to a remove a term?
pbpyrojust18
ParticipantI am trying to access the getStateURL doc and I am getting a 521 error, web server down. https://knowledgebase.ajaxsearchpro.com/other/javascript-api#current-search-state-url-presetting-the-search-filters-and-input-to-a-specific-state
pbpyrojust18
ParticipantWorks. Thanks so much!
pbpyrojust18
Participant<div id='<?php the_field('divi_overlays_id'); ?>' class='item<?php echo apply_filters('asp_result_css_class', $asp_res_css_class, $r->id, $r); ?>'>pbpyrojust18
ParticipantI only need it to open a new tab for the ones that have text in the ACF. If you have a quick way to do that, that would be great. If not I will figure it out with some more PHP.
pbpyrojust18
ParticipantIs it possible to have the ‘url_to_asset’ to open in a new tab?
pbpyrojust18
ParticipantI just edited the ASL code for ASP and it seems to work
add_filter( 'asp_results', 'asp_custom_link_meta_results', 10, 1 ); function asp_custom_link_meta_results( $results ) { // Change this variable to whatever meta key you are using $key = 'url_to_asset'; // Parse through each result item foreach ($results as $k=>$v) { if ( function_exists('get_field') ) $new_url = get_field( $key, $v->id, true ); // ACF support else $new_url = get_post_meta( $v->id, $key, true ); // Change only, if the meta is specified if ( !empty($new_url) ) { $results[$k]->link = $new_url; } } return $results; }Unless there is an updated snippet for ASP?
January 6, 2021 at 5:00 pm in reply to: Disable or remove taxonomy in filter if post type doesn't have it #31038pbpyrojust18
ParticipantThank you. BTW you have been extremely helpful with all my tickets. Very much appreciated. Is it possible to request this as a feature in an upcoming update?
December 11, 2020 at 7:04 pm in reply to: Dropdowns not showing up and have search filter on the current page #30655pbpyrojust18
ParticipantThis is exactly what I needed. Thank you so much for your help. Now I just have to apply our custom styles. Is there a way to strip all the styles so I don’t have to write a bunch of overrides?
-
AuthorPosts