Theme Dev | Convert Template to Theme

If you mean you want a widget to control content dynamically from the admin panel, then you can use the Advanced Custom Fields plugin by Elliot Condon to create custom dynamic content and retrieve it every place all over the website. After installing the plugin, simply create fields in the plugin page and get the … Read more

Accept HTML in custom function

Trying to store markup in the database is generally a bad idea– some reasons being: Certain characters need to be escaped to be put in the database Having markup in the database will negatively effect any searches you may need to run on the data, now or in the future. Having markup in the database … Read more

Static text above category page

You can use the the_excerpt and maybe also the_content filter hook, to catch when the excerpt is going to be print, and output your text before that. Those filters are called just before the current post excerpt (or content) are printed to page. Sample code: /** * Function that runs when the excerpt for the … Read more

Undeletable posts, users or other content

When I see behavior like this, it’s almost always a corrupt MySQL table or two. You can activate WordPress’s built-in repair tool by adding define( ‘WP_ALLOW_REPAIR’, true ); to your wp-config.php file and visiting {$your_site}/wp-admin/maint/repair.php You can remove the define after you’re done.