How to give image source in wordpress page editor?

You can define constant in theme function file as: if( !defined(THEME_IMG_PATH)){ define( ‘THEME_IMG_PATH’, get_stylesheet_directory_uri() . ‘/site/images’ ); } and then you can use img tag as <img src=”https://wordpress.stackexchange.com/questions/252559/<?php echo THEME_IMG_PATH; ?>/footLogo.png” style=”padding: 0px!important; color:white”>

Do WordPress Core Filenames Work as Hooks?

The short answer is ‘yes’. Taken from this article the suffix of those ‘screen specific hooks’ is given by: For custom admin pages added via add_menu_page() – including settings pages – (and related functions) it is the screen ID (the value returned by add_menu_page()) For the admin page listing posts of any post type, it … Read more

How to convert the file path to a URL of the same file?

Kind of depends on where you are in the WordPress environment. Plugins If you’re in a plugin, you can use plugins_url. <?php $url = plugins_url(‘css/admin.css’, __FILE__); The above will give you the path relative to the file passed into the second argument. So if you’re in the main plugin file you might get something like … Read more

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