• Hello Kyle.

    I like your plugin and I’ve been using it for some time on my website.

    Thing which I miss the most is adding favorite button functionality also to taxonomy and custom taxonomies, not only for post type.

    Do you think it is possible that you could add such functionality to your plugin?

    Thank you, David

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kyle Phillips

    (@kylephillips)

    Favoriting things other than post types is on the list of features to build out, but it’s most likely going to be a while before it’s implemented… it will require a fundamental refactoring of some core plugin components.

    I too would love such a feature. Awesome plugin btw and thank you for your work. And again, would love to be able to display/sort/filter based on taxonomies/categories.

    I think generally, it would be nice to have the ability to override the default behaviour and favorite whatever string/data you’d like.

    In my case I’ve been working on adding favoriting support to another plugin, WP Pro Quiz. In that plugin, Quizzes and Questions are custom data and not WP posts, so out of the box the Favorites plugin didn’t work.

    To support saving the ID’s of those custom data types I had to hack the Favorites plugin. The key is disabling the post check in app/Entities/User/UserFavorites.php in the PostExists($id) function and simply return true always. Now the plugin will both save and retrieve any string you want. There are a few additional steps like changing an intval to strval in FavoriteButton.php and FavoriteCount.php to make the hack work.

    For my purposes this works perfectly but as I’m not using all functionalities of the Favorites plugin I can’t guarantee that it’ll work for everything or cause trouble elsewhere.

    • This reply was modified 7 years, 9 months ago by Sugekoppen.
    Plugin Author Kyle Phillips

    (@kylephillips)

    I wouldn’t recommend disabling the post check as noted above. The plugin uses post data throughout, and will definitely cause trouble elsewhere.

    Kyle, thanks for chiming in. I won’t hesitate to call what I did a hack and looking through the code I’d say the FavoriteCount function definitely won’t return correct results if you disable the post check and store non-valid data.

    I see you made an update to the plugin, but still no taxonomy filters, right? Is it hard to add this functionality? Would love that functionality. Also a way for people to add to lists instead of favorites. Thank you for your work.

    I’m also looking forward to see this feature.

    @davidki +1 for the question. I wish to see this feature too.

    Great plugin Kyle.

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Favorite functionality for taxonomy’ is closed to new replies.