WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#28234 closed enhancement (wontfix)

Core Widgets as Shortcodes

Reported by: jmlapam Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Shortcodes Keywords:
Focuses: Cc:

Description

I made a class to use a WP native Widgets as Shortcodes. It's quite basic but I thought it would be a good way to stick to the core instead of reinventing the wheel sometimes.

Just tell me if you find that relevant or not. Maybe it could be extended to any widget created in WP. What do you think about this?

Link is here : https://github.com/TweetPressFr/Core-Widgets-As-Shortcodes

I've tested it and it works. Indeed one should use the appropriate params for each widgets.

Try not to focus on the code itself which is pretty much a draft but do you think the idea could be relevant?

Change History (2)

#1 follow-up: @helen
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I'm a no on this. Shortcodes are not a good experience and widgets may not display correctly or nicely in non-widgetized areas. It's a bad promise to make.

#2 in reply to: ↑ 1 @jmlapam
8 years ago

Replying to helen:

I'm a no on this. Shortcodes are not a good experience and widgets may not display correctly or nicely in non-widgetized areas. It's a bad promise to make.

... fine. Shortcodes can be good e.g with a proper UI and some button in visual editor. You can define markup with before, after widgets too. So be no. Thanks for the answer.

Note: See TracTickets for help on using tickets.