How do I find out which

This is what I have come up with that works. In the function widget of the class: public function widget($args, $instance) { if (isset($instance)) { //$title = apply_filters( ‘widget_title’, $instance[ ‘title’ ] ); //$blog_title = get_bloginfo( ‘name’ ); //$tagline = get_bloginfo( ‘description’ ); } else { $title=”Just My Size”; } global $selectedevent; global $event; global … Read more

script not working anymore after saving widget settings

OK, here is my code and some more information. This is the markup structure without the form fields of my widget: <div id=”widget-XX_my-widget” class=”widget open” style=””> <div class=”widget-top”> <div class=”widget-title-action”> </div> <div class=”widget-title ui-sortable-handle”> <h3>My Widget-Title<span class=”in-widget-title”></span></h3> </div> </div> <div class=”widget-inside” style=”display: block;”> <form method=”post”> <div class=”widget-content”> <div class=”my-widget-section”> <div class=”my-widget-top”> </div> <div class=”my-widget-inside active”> … Read more

Widget recent comment filter by post meta_value

$post_args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, ‘meta_key’ => ‘field_name’, ‘meta_value’ => ‘field_value’, ); $post_query = new WP_Query( $post_args ); $posts_array= array(); if ( $post_query->have_posts() ) { while ( $post_query->have_posts() ) { $post_query->the_post(); $posts_array[] = get_the_ID(); //Array of post ids } wp_reset_postdata(); } //YOUR COMMENT ARGS SHOULD BE THIS $args = array( ‘number’ … Read more

Removing a widget via theme editor

You should be able to remove the widget from Apperances > Widgets page on your WordPress menu. Have you tried that yet? Also, if you are using the Genesis theme from StudioPress, you and can’t find a suitable way to remove it, try inspecting the widget element, see what CSS ID or class is controlling … Read more