Huseyin Berberoglu
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Favorite Posts] Lack of compatibility with WordPress 5.5With latest version I’ve fixed the compatibility problem.
Forum: Plugins
In reply to: [Lazy Load] Is RICG / WP 4.4. responsive images supported?+1 for srcset support.
I need this fix, too…
Forum: Reviews
In reply to: [WP Favorite Posts] FrustratedIf you use custom wpfp-page-template.php please update it from latest version of plugin.
Also you can try to decativate and activate the plugin.
Forum: Plugins
In reply to: [WP Favorite Posts] Broken, includes shiny PHP errorsemile.swain thanks for codes. I’ve just upgraded the plugin and fixed them.
Forum: Plugins
In reply to: [WP Favorite Posts] favorite list displayed in headerHi,
Can you give me the url which i can see the problem? Or you can say which theme are you using.
I’ve tested the plugin with latest version of WordPress and default theme.
Hi,
Try to use wpfp_list_favorite_posts() php function.
Huseyin
Forum: Reviews
In reply to: [WP Favorite Posts] Lots of issues, old code, errors and warningsPlease test the latest version. Also you can send pull requests via https://github.com/hberberoglu/wp-favorite-posts
Forum: Reviews
In reply to: [WP Favorite Posts] FrustratedI’ve made various fixes including your comments. Please review again 🙂
Forum: Plugins
In reply to: [WP Favorite Posts] Add to favorites without reloading the page :-)Hi,
See wpfp.js. Plugin will call a javascript method named wpfp_after_ajax() if it is there.
You can add this method to your javascript file and do the ajax thing.Also you can prevent of loading wpfp.js via plugin settings. After that copy wpfp.js content to your js file and do whatever you want.
Huseyin
I’ve tested the plugin with 3.8 i didn’t see a problem like that. If you give me more detail like live url I/someone can look into the details.
Forum: Plugins
In reply to: [WP Favorite Posts] Show top postsHi,
There is a widget in core about this.Also you can use
wpfp_list_most_favorited($limit=5)functionForum: Plugins
In reply to: [WP Favorite Posts] WP-Favorite Posts and BuddyPressYou can do this but needs some extra work.
1- add a buddypress sub nav item to member profile page. see bp_core_new_subnav_item()
2- in screen function of new subnav_item you can use wp favorite posts core functions and show displayed user’s favorite posts to public.
code tip;
$fav_array = wpfp_get_users_favorites(bp_get_member_user_id());and post loop…
Forum: Plugins
In reply to: [WP Favorite Posts] Get total favorites for a userHi,
use this code;
<?php $fav_array = wpfp_get_users_favorites(bp_get_member_user_id()); $fav_count = count($fav_array); echo '<p id="count">' . $fav_count .' favorite places</p>'; ?>Forum: Plugins
In reply to: [WP Favorite Posts] WP-Posts for PAGES?Hello,
Custom post type support can be implemented easily.
I suggest to copy wpfp-page-template.php file to your template directory.
After that find the query parameter array in wpfp-page-template.php
it is like that;
array(‘post__in’ => $favorite_post_ids, ‘posts_per_page’=> $post_per_page, ‘orderby’ => ‘post__in’, ‘paged’ => $page)
change the array;
array(‘post_type’ => array(‘post’, ‘page’), ‘post__in’ => $favorite_post_ids, ‘posts_per_page’=> $post_per_page, ‘orderby’ => ‘post__in’, ‘paged’ => $page)
now the plugin supports/shows all types of post.
Huseyin