Difficulty with PHP function that displays a post’s format in WordPress
Difficulty with PHP function that displays a post’s format in WordPress
Difficulty with PHP function that displays a post’s format in WordPress
The dashboard widget function wp_add_dashboard_widget() is just a wrapper for add_meta_box(). So you can use the underlying function instead. add_meta_box( ‘my_comments_user_dashboard_widget’ ,’My comments’ ,’dashboard_user_comments_widget_function’ ,$screen // Take a look at the output of `get_current_screen()` on your dashboard page ,’normal’ // Valid: ‘side’, ‘advanced’ ,$priority // Valid: ‘default’, ‘high’, ‘low’ );
I’m fairly certain this is answered elsewhere, but I’ll add it here again. I believe your issue lies here: ‘current’ => max( 1, get_query_var(‘paged’) ), Try this instead: global $wp_query; $wp_query->query_vars[‘paged’] > 1 ? $current = $wp_query->query_vars[‘paged’] : $current = 1; …then: ‘current’ => $current; Your ‘base’ may also be an issue. Instead of this: … Read more
Skeleton Child Theme Add Icon Bar to Header Flex Grid
The server-side code looks to be OK (at a glance) but you are not calling the correct server-side code from your JavaScript. Have a look at this: http://wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/. You need to have an Ajax call to admin-ajax.php?action=<your action>
You pull the author ID here: $autid= get_userdata($author)->ID; So why aren’t you using it to get the avatar on the very next line? echo get_avatar( get_the_author_email(), ’32’ ); get_avatar will accept the ID as a parameter. Try this instead: echo get_avatar( $autid, ’32’ ); get_the-author_email is deprecated anyway so even if it worked you shouldn’t … Read more
Need help enqueueing webfonts
wp-admin won’t load after setting wp-login custom url
This is what I put into a watermark.php file : <?php // loads a png, jpeg or gif image from the given file name function imagecreatefromfile($image_path) { // retrieve the type of the provided image file list($width, $height, $image_type) = getimagesize($image_path); // select the appropriate imagecreatefrom* function based on the determined // image type switch … Read more
WordPress functions.php – Execute plugin specific user online