• So many PHP warnings with debug turned on, tons of deprecated functions being used that have been deprecated for years now. The favorite page shortcode never seems to work properly and most of the time just outputs nothing but the clear favorites link.

    The “user favorites” widget seems to work ok, but it would be nice to also have that use AJAX and update without having to refresh the page as it could cause confusion.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Huseyin Berberoglu

    (@hberberoglu)

    I’ve made various fixes including your comments. Please review again ??

    Thread Starter 61pixels

    (@61pixels)

    Appreciate you looking into it. Notice the deprecated functions are gone, nice!

    But unfortunately the shortcode still doesn’t work. Putting the shortcode on a page only outputs the Clear Favorites link. No UL or any of the favorite pages are output.

    The widget works correctly and updates (still no AJAX), but so far I’m still having zero luck getting the shortcode to display anything. Even tried it on a brand new install of Twenty Twelve with no other plugins activated.

    Plugin Author Huseyin Berberoglu

    (@hberberoglu)

    If 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.

    Thread Starter 61pixels

    (@61pixels)

    Hi Huseyin, I was able to finally figure out the issue. It was an easy fix, I just hadn’t thought of it before.

    As you know (and now I do), out of the box your plugin ONLY works with “Posts”. I assumed it would at least work with pages/posts out of the box. In my case I am only using it for pages (I don’t have any posts), therefore it didn’t do anything with the shortcode/function.

    I passed in pages as the post_type and now all is well.

    Suggestion: I’d update your Installation/Description notes to clearly state this. If I had known from the beginning it would have been a 2 second fix.

    Even better, I’d recommend simply updating the settings page for the plugin to have checkboxes for each currently registered post_type and allow users to choose which ones to allow usage for.

    Hi, I’m having the same issue, I use custom post type and it’s not working.
    Where did you change the post_type? I cannot find that in any file.
    Thanks an lot.

    Ok, I found.
    For those who might be interested:
    change that line:
    $qry = array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);
    and add your custom post type:
    $qry = array('post_type' => 'your_custom_post_type', 'post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Frustrated’ is closed to new replies.