WordPress 5.8 : display new widget
WordPress 5.8 : display new widget
WordPress 5.8 : display new widget
Extending the WordPress Recent Posts Widget
In WordPress 5.8 the ability to add Blocks to widget areas, and several core widgets were replaced with Blocks. Blocks do not have a standardised title field. So to add titles you will need to use a heading bock, and for any blocks that do have a title, whether or how a title can be … Read more
Quick Draft widget in weird place on dashboard after being re-added
add_action( ‘wp_dashboard_setup’, ‘feed_dashboard_add_widgets’ ); function feed_dashboard_add_widgets() { $title = __( ‘My title’, ‘textdomain’ ); //by default title // if ACF is activated (prevent fatal) end your field not empty, define a new $title if ( function_exists( ‘get_field’ ) && ! empty( get_field(‘my_widget_name’ ) ){ $title = get_field(‘my_widget_name’ ); } wp_add_dashboard_widget( ‘dw_dashboard_widget_feed’, $title, ‘my_cool_widget’); }
Widget editing returns JSON response error
How do I add a small excerpt of a blog post on my Front Page Recent Posts widget?
Where does the removing of widget through appearance – customize take affect
Can you hide a widget based on its content?
I don’t know or understand why, but I pasted this into wp-content/themes/twentysixteen/functions.php and it worked: function wpse61674_archives_shortcode_cb( $atts ) { return ‘<h2 class=”widget-title”>Archives</h2><ul>’.wp_get_archives(array(‘format’=>’html’,’echo’=>false,’type’=>’yearly’)).'</ul>’; } add_shortcode( ‘archives’, ‘wpse61674_archives_shortcode_cb’ ); I found this code somewhere on the internet, but it wasn’t part of the wordpress documentation on archives shortcode.