Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi, this worked fine for me, just putting the code you sent at wpfp.js, but in the end of the function jQuery.get, like this:

    jQuery.get(url, params, function(data) {
                    dhis.parent().html(data);
                    if(typeof wpfp_after_ajax == 'function') {
                        wpfp_after_ajax( dhis ); // use this like a wp action.
    				}
    				loadingImg.hide();
    				dhis.show();
    				$("#top5").load(location.href+" #top5>*","");
                }
            );

    And in my sidebar I’ve used the widget internally, not throught the widgets admin stuff, like this:

    <div class="widget" id="top5">
            <h1><?=__('Top 5'); ?></h1>
            <?php if (function_exists('wpfp_list_most_favorited')) { wpfp_list_most_favorited(); } ?>
        </div>
Viewing 1 replies (of 1 total)