Display URL in a Custom Field

You are using get_the_title(), which needs to be echoed out. However, you have it inside the string. Also, you might want to use isset() rather than !empty(). Try this: if( isset( $destino_web ) && $destino_web !== ”) { echo sprintf(‘<p><strong>Web:</strong><a href=”https://wordpress.stackexchange.com/questions/168579/%s”>%s</a></p>’, $destino_web, get_the_title() ); }

Custom url in wordpress

You just need to have a handler function that is called before content is sent to the browser. Without knowing exactly what you are trying to do, here is a general function that will work: function my_plugin_json_handler(){ /*First you should check the POST/GET Request for some variable that tells the plugin that this is a … Read more

Subdomains with almost the same content

Yes, multisite is not what you need here. I would try to map all subdomains on the same wordpress install, and then customize the template via the current URL. In the wp-config.php you then use the current URL as base url: define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); You can also do different themes … Read more

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