Declare global var from Template File and use it in Functions.php

You can use the exact same filter in your template files. If you do need it in functions.php for any reason (maybe you have some additional processing) then you can use your own custom filter. functions.php: function my_custom_authorpage_title( $title ) { // process … return apply_filters( ‘my_title’, $title ); } add_filter( ‘wpseo_title’, ‘my_custom_authorpage_title’ ); author.php … Read more

How to Modify Breadcrumb Page Names for Specific Pages? [closed]

We generally don’t answer plugin-specific questions here so you may find more help in a Yoast-specific forum. To point you toward the right direction, though, there is a filter called wpseo_breadcrumb_output. In either a custom plugin or your theme’s functions.php file, you can add something to the effect of add_filter(‘wpseo_breadcrumb_output’, ‘change_breadcrumb_names’); function change_breadcrumb_names($output) { if(is_page(12)) … Read more

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