WordPress reading old version of functions.php, breaks site

The issue was indeed server side caching. Bluehost was very helpful in providing a way to fix it via FTP. Do the following: In the /wp-content/mu-plugins directory, there is a file called endurance-browser-cache.php. By renaming the file, for example to endurance-browser-cache.old, visiting the site, and returning the name to endurance-browser-cache.php, WordPress will have had to … Read more

How to remove title tag with this filter

This should have worked (the part of the sprintf at least as I don’t have access to the original code. Try give a higher number: add_filter( ‘generate_featured_image_output’ , ‘remove_image_title_archive’,100); Another solution will be removing the filter before applying yours, like this: remove_filter( ‘generate_featured_image_output’, ‘remove_image_title_archive’,10 ); Important: To remove a hook, the $function_to_remove and $priority arguments … Read more

PHP script to redirect traffic based on website accessed

I’am not absolutely sure what you mean but probably something like this may help you: if( $_SERVER[ ‘SERVER_NAME’ ] == ‘website1.com’ ): header( ‘Location: https://www.example.com/w1’ ); exit; elseif( $_SERVER[ ‘SERVER_NAME’ ] == ‘website2.com’ ): header( ‘Location: https://www.example.com/w2’ ); exit; endif;

Graphic before title – Specific Category

Try the following code: function new_title( $title ) { if(in_the_loop() && !is_singular(‘page’)) { $picArray = array( ‘3’ => ‘⚠’, ‘5’ => ‘⛅’, ); $cats = get_the_category(); $cat = $cats[0]->term_id; $title = $picArray[$cat] . ‘ ‘ . $title; } return $title; } add_filter( ‘the_title’, ‘new_title’ ); First, we check if we are in the loop, and … Read more