Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#28234 closed enhancement (wontfix)

Core Widgets as Shortcodes

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

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
12 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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 @anonymized_10765487
12 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.