Shared Functionality Between Widget and Shortcode
-
I am looking to build both a shortcode and a widget with essentially the same functionality, however, it seems short sighted to duplicate the code so I am curious what suggestions people might have for integrating the two.
I have read a couple of articles about creating a shortcode that allows you to embed a widget in a page/post.
My initial thought was to write a shortcode and then just use the widget interface to configure the attributes. Just not sure how to then render the shortcode in place of the widget… or if that will even work.
Any input and ideas are appreciated! Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Shared Functionality Between Widget and Shortcode’ is closed to new replies.