I have some PHP code that I would like to pull out of an existing page of a template, and put into a widget so I can move it around.
What is the quickest way to create a widget?
I have some PHP code that I would like to pull out of an existing page of a template, and put into a widget so I can move it around.
What is the quickest way to create a widget?
You must be logged in to post a comment.
The Widgets API is the quickest way to make a widget that’s reusable. Example use:
If you don’t particularly care about having proper custom widget you can use a plugin like PHP Code Widget to run your code snippet