cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Gutenberg Block #249

Closed bricedupuy closed 2 years ago

bricedupuy commented 4 years ago

Any chance you could make a Gutenberg Block with the features you already have? Allowing for easy customisation :

cabrerahector commented 4 years ago

Hi @bricedupuy,

There are plans to do this sometime in the future. The reason why there isn't a WPP Gutenberg block as of yet (and I'm going to quote myself from a comment I left on the support forums here) is this:

(...) the WordPress team is planning to make everything -including widgets- a Gutenberg block (...) I’d rather wait a bit and see where things go.

Since I don't know how exactly the Gutenberg team is planning to do this it'd be a waste of time for me to go and implement a WPP block to then later realize -for example- that the widget can be used as a Gutenberg block as it is now without me having to do any code changes (unlikely IMO but who knows?)

So, as stated in the comment, I'd rather wait and see.

cabrerahector commented 3 years ago

It's been a while but figured I'd post an update here since you (and everyone else reading this) might be interested.

Since Full-Site Editing is coming soon I decided it was time to give Gutenberg another try. It turns out that there's a Legacy Widget block (recently introduced) that provides some compatibility with existing non-block based, third-party widgets. Unfortunately though at the time of writing it doesn't work very well with WordPress Popular Posts.

Due to the above and since I was curious anyways I started coding a custom WPP block. You can see a small preview here: https://www.buymeacoffee.com/cabrerahector/playing-around-gutenberg

There's still a lot of work ahead before I can share it publicly (the animated preview in that post is already "old", I added more changes & features within the past few days). So far progress has been promising, it's been more fun than I expected.

If everything goes well I might publish the new block and label it as experimental / expect-minor-issues for everyone to try out. Hopefully before FSE launches, that's if work / life allows it haha.

cabrerahector commented 2 years ago

The WPP block is now available to everyone without needing to enable the experimental features option (see 218abca) so I'm closing this now.