benjamin-carlos
Forum Replies Created
-
Forum: Plugins
In reply to: [Favorites] Dynamically update favourites list after favourite button clickedHi there,
The code below is ‘refreshing’ the ‘span.counter’ div, where I’ve added:
<?php the_user_favorites_count($user_id, $site_id, $filters); ?>
jQuery('body').on('click', 'button.simplefavorite-button', function() { jQuery("span.counter").load(location.href + " span.counter"); });
Sometimes it’s a little buggy, but it works for me!
Regards,
BenjaminForum: Plugins
In reply to: [Favorites] Favorites Wp_Query UsageHow is your loop look like?
Maybe something makes a conflict.Regards Benjamin
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Add extra elements / hooks to paginationYeah, if you could guide me through this, I would really appreciate that!
And I’m comfortable with js ??Thank you!
Regards,
BenjaminaForum: Plugins
In reply to: [Ultimate WP Query Search Filter] Add extra elements / hooks to paginationThanks for your help! It works pretty well. But they appear next to the other filters.
Is it possible to set these ‘Custom fields’ inside the ‘Pagination – .uwpqsfpagi‘ div? Next to the ‘Page: 1, 2, 3, etc..’
I can see that the pagination is called by this line:
echo $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id, $getdata);
Is it possible to create something like below?
add_action( "$apiclass->ajax_pagination", "add_custom_field" ); function add_custom_field( $atts ) { echo "<select name="sorting">"; echo "<option value="desc">Descending</option>"; echo "<option value="asc">Ascending</option>"; echo "</select>"; //result per page echo "<select name="perpage">"; echo "<option value="10">10</option>"; echo "<option value="20">20</option>"; echo "<option value="30">30</option>"; echo "</select>"; }
Thanks a lot!
Regards,
BenjaminForum: Plugins
In reply to: [Ultimate WP Query Search Filter] Add extra elements / hooks to paginationWow, awesome! Thank you very much for your time.
I’ll go play around with it! ??
Cheers!
Benjamin