Hi
I am rewriting the titles using:
wp_title('-', true, 'right'); bloginfo('name');
The bloginfo name comprises a quite competitive keyword. However I could reach the 2nd position of Google searches, using such title tags in every page and post.
For some custom post types the titles are very long. Hence, the resulting title tags are longer than the Google recommended length.
I have rearranged the code to:
if (strlen(get_the_title($post->ID))<40)
{wp_title('-', true, 'right'); bloginfo('name');}
elseif (strlen(get_the_title($post->ID))>65)
echo substr(get_the_title($post->ID), 0, 62-strrpos(get_the_title($post->ID), " ")).'..';
else
echo get_the_title($post->ID);
The title tag length is ok now
I wonder if it is really worthy…. What do you think?. Is it really important to keep the title tags below certain length?
Angel
Hi Angel, yes it's important. 69 characters is the optimum.Why bother using PHP to amend the titles?There are plenty of useful meta tag plugins that can help you achieve the optimum search engine placement.A handy one that springs to mind is the All in one SEO pack.
Phil Gregory - Web Marketing Co-ordinator
http://www.linkedin.com/in/philgregory
https://twitter.com/#!/SEOZero1
--------------------------------------------------------------------
ZERO-1 LTD
Tel: 0845 867 6391
Mail Address: Suite 2, West Road House
26a West Road, Buxton, SK17 6HF
--------------------------------------------------------------------
--
See the group blog at http://mwug.info
You received this message because you are subscribed to the Google
Groups "Manchester WordPress User Group" group.
To post to this group, send email to
manchester-word...@googlegroups.com
To unsubscribe from this group, send email to
manchester-wordpress-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/manchester-wordpress-user-group
Thanks!. I used wordpress-seo but there were incompatibilities with my theme (socialite).
I am in an “initial developer” stage. I like to come into the PHP code rather than relying on plugins directly. It is really bothering but a good way to learn….
Sorry I couldn’t attend 19’ meeting. I am in Spain for several weeks.
cheers
Thanks!. I used wordpress-seo but there were incompatibilities with my theme (socialite).
I am in an “initial developer” stage. I like to come into the PHP code rather than relying on plugins directly. It is really bothering but a good way to learn….
"Therefore, as of October 31st 2012, both Sidebar Manager and WooSEO will be removed from the WooFramework, in favour of WooSidebars and WordPress SEO by Yoast, respectively.
If you are using either the Sidebar Manager or WooSEO, never fear. We’ve spent time working out really easy methods of switching over to WooSidebars and WordPress SEO."
http://www.woothemes.com/2012/09/every-line-of-code-audited/
Sorry I couldn’t attend 19’ meeting. I am in Spain for several weeks.
The site had problems with the permalinks, because a theme function added the bloginfo name at the end of the title, using a separator. Both, the theme function and the plugin were not compatible, due to the separator PHP code. Designing a right title and URL is crucial for SEO and then I decided to make my own functions, considering my particular options (categories, custom-posts, etc.). This yielded nice results in search optimization, although competition is quite high.
Socialite is a premium theme, although you might be right. I am hacking the theme files to obtain several personalized options. It works fine.
I do like wordpress-seo plugin, it has a lot of options and the “green light” can give you a fast idea about SEO quality of the post-page. However, sometimes it indicates that the keyword is not in the first paragraph, whilst it really is, although included in a shortcode or similar. Furthermore, the Yoast plugin insists in keyword density over the same keyword, which is not the way SERPs work now, according to experts.
I would say that nobody’s perfect J
De:
manchester-wordpress-user-grou...@googlegroups.com [mailto:manchester-word...@googlegroups.com]
En nombre de Mike Little
Enviado el: 21 September 2012
10:44
Para: manchester-word...@googlegroups.com
Asunto: Re: [MWUG] Re: title tag lentgh
On 21 September 2012 09:46, Angel Utset <angel...@gmail.com> wrote:
--
The trick is to not believe everything you read. I am an SEO and keyword density does play a part because if you over saturate, Google will see you as keyword stuffing. then down the SERPS you go…wweeeeeeeeeeKind Regards,
I dont want to be misunderstood. I do respect expert work and I am only a practitioner. It doesn’t mean you have to accept everything coming from experts.
Wordpress-SEO plugin not seeing the keyword in the first paragraph, whilst it effectively is, has been found by many people. This bug appears in the Yoast forum as well.
Besides, using the keyword several times in the content seems not only not relevant to SEO, but conflictive in some cases. Keyword winner, for instance, recommends several related keyword phrases combined in h2,h3, etc.
Anyway, the wordpress-SEO is still the best I found. I rely on experts…
De: manchester-word...@googlegroups.com [mailto:manchester-word...@googlegroups.com] En nombre de Mike Little
Enviado el: 21 September 2012
14:22
Para: manchester-word...@googlegroups.com
--
Thanks for the attachment!
I havent tested the plugin in many themes, actually. I am just starting in wordpress, coming from a PHP (and other languages) environment.
Perhaps the wordpress-SEO plugin has an option to promote the “brand” at the end of the title, as recommended in the document you attached. I haven’t seen it.
However, I have found quite effective this approach. The blog name I am working is a short, keyword rich text. Adding it to the title of each post and page brought the site to the first Google positions in just 2-3 weeks, considering a quite competitive keyword.
I am managing data from google analytics. I have also the SEOquake extension in Chrome, just for testing.
Furthermore, I decided to deactivate the wordpress-SEO plugin in order to save loading time. I have few plugins active, only those things I’m unable to program my self in template or simple plugin functions. I am especially using template pages, because the functions are called only if the page is visited. The plugins are loaded all the time. Is that approach correct?
De: manchester-word...@googlegroups.com [mailto:manchester-wordp...@googlegroups.com] En nombre de Philip Valentino
Enviado el: 21 September 2012
14:09
Para: manchester-word...@googlegroups.com