Tag Info

New answers tagged

-2

/* Dynamic Copyright Date Start */ function royaltechbd_copyright() { global $wpdb; $copyright_dates = $wpdb->get_results(" SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = 'publish' "); $output = ''; if($copyright_dates) { $copyright = "© " . ...


-1

If you want to get the language of the browser do so: $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); If you want to redirect to ?lang=en: header("location: {$_SERVER['REQUEST_URI']}?lang={$lang}"); You should read about HTTP_ACCEPT_LANGAUGE. There are many ways you can dance with languages but you should understand some key points. Chose ...


0

i think you forgot the ";" should be: <title> <?php if(is_front_page()) { bloginfo('name'); } else { wp_title( '|', true, 'right' ); } ?> </title>


1

The conditional tag is_front_page() is used to specifically check for a static front page, so you should be able to use that to switch between your title formats <title> <?php if(is_front_page()) { bloginfo('name'); } else { wp_title( '|', true, 'right' ); }; ?> </title>



Top 50 recent answers are included