Change the HTML of the comment form that is generating somewhere from the core WordPress

You can write your own custom HTML structure for comment listing. Inside your comments.php file, there will be a call to wp_list_comments() function. Find it, and pass your own function as its callback: wp_list_comments( array( ‘callback’ => ‘my_function’ ) ); Now, create a callback function and start implementing your own HTML structure. This function accepts … Read more

Post thumbnail not showing in WP admin area for custom post type

I think it’s possible the 2 separate enabling statements may be interfering with each other. The purpose of having an array is to combine them into one enabling statement. Try the following in your functions file. Instead of: add_theme_support( ‘post-thumbnails’ ); add_theme_support( ‘post-thumbnails’, array( ‘customposttypename’ ) ); This: add_theme_support( ‘post-thumbnails’, array( ‘post’, ‘customposttypename’ ) );

create shortcode to list users with specific meta key value

Try this: function thebroker_agents() { global $current_user; $bmail = $current_user->user_email; $user_query = new WP_User_Query( array( ‘meta_key’ => ‘broker_email’, ‘meta_value’ => $bmail, ‘fields’ => ‘all’ ) ); $users = $user_query->get_results(); if (!empty($users)) { $results=”<ul>”; foreach ($users as $user){ $results=”<li>” . $user->display_name . ‘</li>’; } $results=”</ul>”; } else { $results=”No users found”; } wp_reset_postdata(); return $results; } … Read more

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name

I would start by creating in the themes functions.php a function like this public function greenday_head($args) { return $args } It may be that $args are never passed in but it seems likely they are. If you want to try to find out what this is doing then you can add: public function greenday_head($args) { … Read more