Img src path from wp-admin

Best to use a images folder in your child theme and output like this: $output = sprintf( ‘<img class=”your-class” src=”https://wordpress.stackexchange.com/questions/259497/%s” alt=”https://wordpress.stackexchange.com/questions/259497/%s” />’, get_stylesheet_directory_uri() .’/images/image.jpg’, get_the_title( $post->ID ) ); echo $output;

Add custom version to an image

so you can do that in 2 different ways 1. modify directly on template-parts/content-single.php 2. you can plug it using the add_action(pre_get_post,func_with_your_staff ) inside this function func_with_your_staff( $query ) { global $wp ; if ( $query->is_single() && empty($query->post_type) $query->set(‘post_type’, ‘wherever_is_type’); // perhaps you have a custom_post_type ?> and then you can add your extra staff … Read more

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