websim
Forum Replies Created
-
Forum: Plugins
In reply to: [Brevo for WooCommerce] Order status eventHi
here https://help.sendinblue.com/hc/en-us/articles/209579245#6
it says “order_completed is passed when the order has been made.” not it is complete.Forum: Plugins
In reply to: [Social Chat Widget (⚡ by Callbell)] Fatal error in complement activationI have change all <? with <?php and it works
Forum: Plugins
In reply to: [Social Chat Widget (⚡ by Callbell)] Fatal error in complement activationParse error: syntax error, unexpected end of file in /var/www/vhosts/ovvio.com/httpdocs/wp-content/plugins/callbell-chat-widget/index.php on line 69
Forum: Plugins
In reply to: [Social Chat Widget (⚡ by Callbell)] Fatal error in complement activationHi same problem… I have PHP version 7.2.29
- This reply was modified 6 years, 1 month ago by websim.
Hi dcooney
I did not create any functions, the code was just an example.
I want know how integrate your plugin with my filter.
This is possible?
Can you give me some indication?Thanks
Hi dcooney
I’ve created a list of letters<?php $aToZ = range( 'a', 'z' ); echo '<ul class="aToZ-list list-unstyled">'; foreach ( $aToZ as $char ) echo "<li><a href='?cognome=" . $char . "' title='". $char ."'>" . $char ." </a></li>"; echo '</ul>'; ?>How do plug-in filters work?
ThanksThank you very much, but I solved with default category of wordpress (As in your demo).
I also want to integrate search in filters is it possible?
Thanks dcooney
Can you help me with the script?I’m using multiple taxonomies
Ok no error now and this is the object of the browser console:
Object {post_type: "architetti", taxonomy: "categorie_architetti", taxonomy_terms: "architetto"}But the filter is ignored and all posts are shown
Hi
I get the following error “ReferenceError: alm_is_animating is not defined”
here my code jsjQuery(document).ready(function ($) { function alm_adv_filter(){ if(alm_is_animating){ return false; // Exit if filtering is still active } alm_is_animating = true; var obj= {}, count = 0; // Loop each filter menu $('.advanced-filter-menu').each(function(e){ var menu = $(this), type = menu.data('type'), // type of filter elements (checkbox/radio/select) parameter = menu.data('parameter'), // category/tag/year value = '', count = 0; // Loop each item in the menu if(type === 'checkbox' || type === 'radio'){ // Checkbox or Radio $('input:checked', menu).each(function(){ count++; var el = $(this); // Build comma separated string of items if(count > 1){ value += ','+el.val(); }else{ value += el.val(); } }); } if(type === 'select'){ // Select var select = $(this); value += select.val(); } obj[parameter] = value; // add value(s) to obj }); console.log(obj); var data = obj; $.fn.almFilter('fade', '300', data); // Send data to Ajax Load More } $('#apply-filters').on('click', alm_adv_filter); // 'Apply Filter' button click /* * almFilterComplete() * Callback function sent from core Ajax Load More * */ $.fn.almFilterComplete = function(){ alm_is_animating = false; // clear animating flag }; });I want a filter as in the attached image.
For example if click on “A” show acf custom field beginning with “A”
Thank you
I solved whit this code:var masonryInit = true; $.fn.almComplete = function(alm){ var $container = $('.alm-listing'); // our container // do stuff here. };