Adding dynamic title to WordPress

Using a good <title> tag is incredibly important for ranking high in the Search Engines. This code snippet will dynamically generate a dynamic <title> tag to improve your WordPress site’s SEO and should be placed in your WordPress site’s header.php replacing your existing <title>.

<title><?php bloginfo('name'); if(wp_title('', false)) { echo '|'; } else { echo bloginfo('description'); } wp_title(''); ?></title>

Recent Article

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. A motivating discussion is definitely worth comment.
    I do think that you ought to publish more on this topic, it may
    not be a taboo matter but usually people don’t discuss such topics.

    To the next! Many thanks!!

  2. test 3 at 1:34 pm

    Having read this I believed it was really enlightening.
    I appreciate you spending some time and energy to put this article together.
    I once again find myself spending a significant amount
    of time both reading and commenting. But so what, it was still worth it!

    • Thanks for your encouragement. I feel delighted to have enthusiastic contributors like you. Feel free to share and contribute further to Codehints.

  3. Whats up! Impressive blog post! I appreciate the way detailed CodeHints | Adding dynamic title to WordPress.
    I’ve i never thought related to CodeHints | Adding dynamic title to WordPress pick which gift.
    Web site artice writer, previously it was quite interesting to read .

    You can’t say everyone will most likely publish as effective as the author of such a blog.
    A number of us battle when it comes to drafting .

    That we don’t realise regardless of if It was not respectable
    contend with this problem with no homepage reviews of essay writing
    services. The group with all the website leads to impressive
    product reviews of assorted newsprint composing
    goods and services so that you guidance consumers fight shy of charade
    and get most suitable service providers

  4. Woah! I’m really digging the template/theme of this blog.

    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance”
    between superb usability and visual appeal. I must say you’ve done a
    great job with this. In addition, the blog loads
    extremely quick for me on Opera. Exceptional Blog!

  5. Every weekend i used tto go to see this site, as i wish for enjoyment,
    for the reason that this this website conations genuinely fastidious
    funny material too.

  6. You actually make it seem so easy with your presentation but I find this matter to be really something that I think I would never understand.

    It seems too complicated and extremely broad for me.
    I am looking forward for your next post, I’ll try to get the hang of it!

  7. Just want to say your article is as surprising. The clearness
    in your post is simply excellent and i could assume you are an expert on this subject.
    Well with your permission let me to grab your RSS feed to keep updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

  8. Businesses are erasing the boundaries between nations
    and as a result, communication with the requisite
    part in expanding your reach as entrepreneur. Communication, in this be important, is the wit to spell out
    between any language doublet there is and the transfer services explode has made
    it calm easier. You righteous have to change sure the circle you trusteeship your transference offers fair help, which can be verified close
    checking the reviews of the fastidious one.

  9. at 9:46 pm One such website has exploded beyond all expectations in the above requirements, knowning that
    website is . The idea just for this indoor play centre came once the
    Wilikie brothers tied a rope towards the roof of a factory roof and slid down it
    into bales of hay. Cable operating companies also give this type of case to
    supply their customers with their services.

  10. It has in no way been easier to judge between the interpretation services, as all
    bloke opinions and testimonials are gathered in one part of the country on you to pick the best.
    Take off peevish supremacy and as a result inadequate experience
    by means of consulting any paraphrase website reviews.
    Utterly written testimonials choice guide you through the process
    of selecting the united and purely transfiguration waiting
    that will spasmodically your needs.

  11. Johnf79 at 2:29 pm

    An fascinating dialogue is value comment. I believe that it is best to write more on this matter, it might not be a taboo topic but generally individuals are not sufficient to talk on such topics. To the next. Cheers ebebdeaaekdg

  12. Smithe22 at 12:38 pm

    I am now not certain the place you’re getting your info, however good topic. I needs to spend some time learning more or figuring out more. Thank you for magnificent info I was on the lookout for this information for my mission. bekdbcdbeaecfkaa

  13. Johne767 at 12:38 pm

    Good blog! I really love how it is easy on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your feed which must do the trick! Have a nice day! agedbdegaddb

  14. When someone writes an article he/she maintains the plan of
    a user in his/her brain that how a user can be aware of it.
    Therefore that’s why this article is great. Thanks!

  15. Amazing! This blog looks exactly like my old one!
    It’s on a completely different topic but it has pretty much the same page layout and design. Outstanding choice
    of colors!

  16. Hi there to all, it’s in fact a pleasant for me to pay a visit this web page,
    it contains helpful Information.

  17. Howdy! Someone in my Myspace group shared this site with us so I came to take
    a look. I’m definitely loving the information. I’m book-marking and will be tweeting this to my followers!

    Superb blog and great design.

  18. Hello there! This is kind of off topic but I need some advice from an established
    blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick.

    I’m thinking about setting up my own but I’m not sure where to begin. Do you have any
    points or suggestions? Appreciate it

  19. Pretty nice post. I just stumbled upon your weblog
    and wanted to say that I’ve really enjoyed browsing your blog
    posts. After all I’ll be subscribing to your feed and I hope you write again soon!

  20. Greetings from Florida! I’m bored to death at work so I decided
    to check out your blog on my iphone during lunch break.
    I enjoy the info you provide here and can’t wait to take a look when I get home.
    I’m surprised at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyways, superb site!

  21. First off I would like to say terrific blog! I had a
    quick question which I’d like to ask if you do not mind.
    I was curious to know how you center yourself and clear your
    thoughts prior to writing. I have had a hard time clearing my thoughts
    in getting my ideas out. I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes tend to be
    lost simply just trying to figure out how to begin. Any recommendations or hints?


  22. Does your blog have a contact page? I’m having trouble locating it but, I’d like to send you an email.
    I’ve got some recommendations for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it expand over time.

  23. I’m amazed, I must say. Seldom do I encounter a blog that’s equally educative and entertaining,
    and let me tell you, you’ve hit the nail on the head.
    The issue is something too few men and women are speaking intelligently about.
    I am very happy I stumbled across this during my hunt for something relating
    to this.

  24. I like the valuable info you provide for your articles.
    I’ll bookmark your blog and take a look at again right here frequently.

    I am slightly sure I’ll be informed many new stuff proper here!
    Good luck for the following!

  25. Quality articles is the key to interest the viewers to pay a visit the website,
    that’s what this web page is providing.

  26. Info at 2:24 pm

    Having read this I believed it was really enlightening.
    I appreciate you taking the time and effort to put this article together.

    I once again find myself spending way too much time
    both reading and leaving comments. But so what, it was still worthwhile!

  27. I always spent my half an hour to read this web site’s articles or reviews
    daily along with a mug of coffee.

  28. I must thank you for the efforts you’ve put in writing
    this website. I am hoping to view the same high-grade blog posts by
    you later on as well. In fact, your creative writing abilities has inspired me to get my
    own, personal site now 😉

  29. Hi, I think your blog might be having browser compatibility issues.
    When I look at your blog site in Firefox, it looks fine but when opening
    in Internet Explorer, it has some overlapping. I just wanted
    to give you a quick heads up! Other then that, amazing blog!

  30. Businesses are erasing the boundaries between nations and as a upshot, communication act the chief part
    in expanding your reach as entrepreneur. Communication, in this fact, is the ability to mutate between any intercourse yoke there is and the transfiguration services increase has made it disinterested easier.
    You legitimate from to make sure the flock you trust your transference offers adequate help, which can be verified by checking the reviews of the fastidious one.

  31. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically tweet my newest twitter updates.

    I’ve been looking for a plug-in like this for quite some time and was
    hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look
    forward to your new updates.

  32. Your content is good as well as informative in my personal
    opinion. You have really done lots of research on this topic.Thank you for sharing it.

  33. Gena at 3:18 pm

    If yⲟu eelect tto freelance, additionally, you will be in с᧐mmand
    of your personal ѕchedule. As a substitute of being
    bound to the 9-to-five work day of most law placеs of work, each your each
    daʏ schedule and your calendг as ɑ completе shall be largely as much aas
    you. Whether or not it is advisable taҝe ddɑy without work, or whether or not you ԝant to tackle a heaviwr workload, feelancing will meet youг needs.

  34. xxx at 10:21 am

    Wondеrful beat ! I wish to apprentice while you amend
    your web sіte, how could i subscribe for a weblog ᴡeЬsite?
    The acϲount aided me a appropriate deal. Ι were a little bit acquaіnted of this your broadcast offered vivid clear idea

  35. xxx at 4:22 am

    Thіs is really fascinating, You are а very skilled blogger.
    I havе joined your rsѕ feed and ѕit up for looking for
    more of your magnifісent post. Also, I have shared your website іn my social netwօrks

  36. Hi Anish,

    I saw you tweeting about wordpress and I thought you might be interested in my new plugin WP Social Traffic PRO.

    You can get 100% FREE Fully AUTOMATED traffic from Facebook to any webite you want!
    Trust me! 100% REAL Visitors on AUTOPILOT…

    See how it works

    Keep making great stuff!


Explore our Category list

  • Keep your skills sharp, get informed.

    Subscribe to our mailing list and get interesting stuff and updates to your email inbox