dynamic title in WordPress
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

<title>
<?php
if (is_home()) {
echo bloginfo('name');
} elseif (is_404()) {
echo '404 Not Found';
} elseif (is_category()) {
echo 'Category:'; wp_title('');
} elseif (is_search()) {
echo 'Search Results';
} elseif ( is_day() || is_month() || is_year() ) {
echo 'Archives:'; wp_title('');
} else {
echo wp_title('');
}
?>
</title>

You may want to check :

  1. dynamic title tag
  2. Display Recent Comments
  3. Styling Your WordPress Comments
  4. comments template
  5. most commented / popular posts based on comments count

Post a Comment

Your email is never shared. Required fields are marked *

*
*