Serve WordPress in root path of Apache

After copying WordPress files in the DocumentRoot of Apache server. I found that URLs where rendered as wordpress/qwe. So I removed all the files in DocumentRoot and installed WordPress again. By copying the contents, NOT the directory, of the downloaded WordPress to the DocumentRoot of Apache server. Installation makes the URLs to be in the … Read more

How to add a class to Buddypress avatars in the Activity stream? [closed]

When calling bp_loggedin_user_avatar(), you can set the ‘html’ attribute to false and it will return just the URL of the avatar (instead of the full HTML). Then you can style it how you want. Something like: $avatar_url = bp_loggedin_user_avatar( ‘html=false’ ); echo ‘<img class=”media-object” src=”https://wordpress.stackexchange.com/questions/157817/. $avatar_url .” width=”‘ . bp_core_avatar_thumb_width() . ‘” height=”‘ . bp_core_avatar_thumb_height() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)