debugging errors.. how to remedy?

Replace get_bloginfo( ‘siteurl’ ) with home_url(). As the get_bloginfo() Codex entry explains, siteurl is deprecated: ‘siteurl”https://wordpress.stackexchange.com/”home (note this is deprecated! from version 2.2)”https://wordpress.stackexchange.com/”url’ – Returns the ‘Site address (URL)’ set in Settings > General. This data is retrieved from the ‘home’ record in the wp_options table. Consider using home_url() instead.

How to set the default avatar of buddypress avatar [closed]

As @shanebp said: You can define the default avatar site-wide by using BP_AVATAR_DEFAULT For this you can define the constant(s) BP_AVATAR_DEFAULT and/or BP_AVATAR_DEFAULT_THUMB inside the bp-custom.php as described at the buddypress codex page Customizing BuddyPress Avatars, for example like this: Code: $upload_dir = wp_upload_dir(); $url_default_avatar = $upload_dir[‘baseurl’] . ‘/defaults/buddypress/default-member-avatar.png’; $url_default_avatar_thumb = $upload_dir[‘baseurl’] . ‘/defaults/buddypress/default-member-avatar-thumb.png’; define … Read more

register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead

From your title: register_sidebar_widget() is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. Somewhere in your Theme – in functions.php, or in a function included within functions.php – you’re adding custom Widgets. Look for that code, and replace usage of register_sidebar_widget() with wp_register_sidebar_widget(). PROTIP: Use the Log Deprecated Notices Plugin to track down where the deprecated … Read more

Overwrite category head title

You can use the wp_title filter to modify the output of the wp_title function. quick example based on the example from Codex: add_filter( ‘wp_title’, ‘wpa66574_title_filter’, 10, 3 ); function wpa66574_title_filter( $title, $sep, $seplocation ) { // account for $seplocation $left_sep = ( $seplocation != ‘right’ ? ‘ ‘ . $sep . ‘ ‘ : ” … Read more

Generate featured images old posts

You can look into this post: http://ken.ph/first-image-of-wordpress-post-as-thumbnail/ Or if you’re comfortable with MySql try using this (obviously check it on local database first): INSERT into wp_postmeta (meta_value, meta_key, post_id) SELECT DISTINCT(ID), post_type , post_parent FROM wp_posts WHERE post_type=”attachment” AND post_parent !=0 AND post_status=”inherit”; UPDATE wp_postmeta set meta_key = ‘_thumbnail_id’ WHERE meta_key=’attachment’