Link opens a new website instead of my own

I have copied the generated code from your website. The new window happens because of the target=”_blank” in the anchor a tag. If you can check the widget code/settings you would know if you need to change PHP code or is configurable. <div class=”socialmedia-buttons smw_left”> <a href=”https://www.facebook.com/pages/Volunteering-News/391260697641619″ rel=”nofollow” target=”_blank”> <img width=”32″ height=”32″ src=”http://www.volunteeringnews.com/wordpress/wp-content/plugins/social-media-widget/images/cutout/32/facebook.png” alt=”Follow Us … Read more

how to manipulate HTML parameters using PHP conditions

not sure if this is the correct approach Regardless of what the correct approach to adding an active class to the li element might be, adding a new navigation to the administrative backend is, beyond the shadow of a doubt, a very wrong approach in the first place. Rather than doing that, familiarize yourself with … Read more

What is the best way to get the first few post from WordPress in different divs using a loop?

Use this code for the loop. I removed your comments and added some for clarification. <?php if ( have_posts() ) { // Do first post. add_filter( ‘the_content’, ‘narga_excerpts’ ); add_filter( ‘the_content’, ‘remove_first_image’ ); the_post(); get_template_part( ‘content’, get_post_format() ); // Do remaining posts. remove_filter( ‘the_content’, ‘narga_excerpts’ ); remove_filter( ‘the_content’, ‘remove_first_image’ ); while ( have_posts() ) { … Read more

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