Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CustomTitle()
- {
- global $paged;
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- if (is_front_page() or is_single())
- {
- $custom_title = wp_title('');
- return $custom_title;
- }
- else
- {
- {
- if ($paged == '1' or $paged == '0')
- {
- $custom_title = wp_title('');
- $custom_title.= ' - Domainname';
- return $custom_title;
- }
- else
- {
- $custom_title = wp_title('');
- $custom_title.= ' - Pagina ' . $paged . ' - Domainname';
- return $custom_title;
- }
- }
- }
- }
- echo CustomTitle();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement