Using the_widget Multiple Times

I’ve written custom functions for queries. <?php /** * Column Content (min:2 – max:3 column) * * @since 1.0.0 * @return void */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } add_action( ‘widgets_init’, function(){ register_widget( ‘Hw_Column_Widget’ ); }); class Hw_Column_Widget extends WP_Widget { /** * Sets up the widgets name etc */ public … Read more

how to get value of a select box in custom widget wordpress

You missed the ending curly brace of the class techno_widget, you need to call the function techno_load_widget outside of the class techno_widget and you declared the variable ‘$blog-titlewrong. You can’t declare variable with–. It is core PHP` convention. So I rewrite your code like below- class techno_widget extends WP_Widget { function __construct() { parent::__construct( ‘techno_widget’, … Read more