rrfranco92
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] How to fetch thumb to the store single pageGot it working! Thank you so much!
Forum: Plugins
In reply to: [qTranslate X] error when number of menu item over 35Happening the same with me. Already increase the max_inputs_vars in the server and still not working.
Forum: Plugins
In reply to: [WP Store Locator] Get category values in the store listingI’m also trying to implement this with a custom taxonomy, I guess it is only a matter of changing the taxonomies value?
Forum: Plugins
In reply to: [WP Store Locator] Get category values in the store listingSweet! Got it working! Thank you so much!
Although I’m having an issue. When the page loads, none of the results are shown, but if you start filtering then they will show up as expected.
Forum: Hacks
In reply to: Adding a custom taxonomy to a SQL QueryThe plugin is WP Store Locator
Forum: Plugins
In reply to: [WP Store Locator] Adding a custom taxonomy Custom CategoriesHey,
I’ve managed to get both categories working but it seems I’m facing a problem which is the plugin accepts one category but only if the other is not defined.
Do you have any suggestion on how to get both categories to be searchable?
Forum: Plugins
In reply to: [WP Store Locator] Adding a custom taxonomy Custom CategoriesHey Tijmen,
You’ve been very helpful, really!I added the following code to the wpsl-map.js with a unique ID
if ( $( "#wpsl-custom-category" ).length > 0 ) { if ( isMobile ) { customcategoryId = parseInt( $( "#wpsl-custom-category .wpsl-dropdown" ).val() ); } else { customcategoryId = parseInt( $( "#wpsl-custom-category .wpsl-selected-item" ).attr( "data-value" ) ); } if ( ( !isNaN( customcategoryId ) && ( customcategoryId !== 0 ) ) ) { ajaxData.filter = customcategoryId; } }I changed a few variables name so it doesn’t repeat in the same function.
I’m now trying to add the sql query but I don’t no much about it and I’m also asking for help in other forums.
I guess this is the SQL query code, and I tried adding
theAND term_tax.taxonomy = ‘wpsl_custom_category’
but it doesn’t work.
` $cat_filter = “INNER JOIN $wpdb->term_relationships AS term_rel ON posts.ID = term_rel.object_id
INNER JOIN $wpdb->term_taxonomy AS term_tax ON term_rel.term_taxonomy_id = term_tax.term_taxonomy_id
AND term_tax.taxonomy = ‘wpsl_store_category’
AND term_tax.taxonomy = ‘wpsl_custom_category’
AND term_tax.term_id = %d”;`I guess I’m not declaring the sql query the right way…is it so? Could you help with this or it is out of your support?
Forum: Plugins
In reply to: [WP Store Locator] Search Not by categories not workingHey,
Could you help me with this? I’m still receiving the error that it doesn’t show results..Forum: Plugins
In reply to: [WP Store Locator] Adding a custom taxonomy Custom CategoriesHey
Thank you so much for your help.
I’ve managed to get the second taxonomy just my adding your code to functions.php, adding a new function create category filter in class-frontend.php and then adding it to my own template and it is displaying.
Will it still work like this?