Let’s imagine here that we’ve built a custom table inside your Worpress database, and that ou don’t want to use widgets nore plugins to access it.
Well, you can use a template to do it !
Get the WP connection
This is a sample snippet to use inside your template...
We assume here that you are building your first WordPress theme and that you want to include some Widgets area. The maind advantage is that you can easily change the appearance of your site by playing with widgets and widgets areas.
The principle is quite simple.
We declare the widget areas...
Sometimes you have to work on a subdomain on a WordPress site where you set your robots.txt to not to crawl it. Or you do work on your local machine.
But when it’s finished…you’ll have to move it to the final domain.
But how ?
Here is a basic synopsis of what you need to...
If you want to be able to use shortcodes in widgets, like a text widget for example. Make sure to have this line somewhere in your functions.php file (in your theme).
<?php //line to enable shortcodes in widgets
add_filter('widget_text', 'do_shortcode'); ?>