How can tags be displayed in the title of image.php?

I've tried a number of ways to get the tags to display as the page title, with "close but no cigar" results. I can get the tags to display at the top of the page but not as the page title, or get the word Array to display as the title, but not the tags to display as the page title of image.php

I've tried both getTags, printTags()to no avail. I'm hoping its easy to place a variable between the <title></title> to get the tags to display for individual images.

If that's possible, which one should be used?

Thanks

Comments

  • acrylian Administrator, Developer
    You have to build your own function using `getTags()` which returns an "array" of the tags. Please see the PHP documentation for these basics of working with arrays.

    `printTags()` of course does not work because it prints a html list and html elements are not allow within the `` element.
  • Sounds really simple for somebody who knows how to program. Anybody want to write this up for $25 bucks?

    I'm a photographer, not a coder, so I'd appreciate someone writing up a snippet for this. Since it's value for general seo would be a benefit for zenphoto, I'd also be happy to share the code here after I pay for it.
  • acrylian Administrator, Developer
    Not sure if listing lots of tags in the title really helps SEO wise that much nowadays.

    Anyway, you can contact me directly via the paid support page if you like.
  • Not wishing to debate seo, since Google's algorithms are secret. Just a sharing of information. Here are a couple of sources that let me to the conclusion of the importance of title tags.

    Forbes - February 2014
    "The title tag has consistently been one of the most critical ranking factors, and remains so for 2014."
    http://www.forbes.com/sites/jaysondemers/2014/02/20/the-9-on-page-seo-elements-you-need-in-2014/
    ----------------------------------------
    Matt Cutt in Search Engine Round Table - April 2014
    "It is best for your to try to anticipate what the user will search for when crafting your title tags. When you do that and then when it matches the query, then Google will likely show your title tag."
    http://www.seroundtable.com/google-title-search-18471.html
    ======================================================
    moz.com
    "A title tag is the main text that describes an online document. Title elements have long been considered one of the most important on-page SEO elements (the most important being overall content), and appear in three key places: browsers, search engine results pages, and external websites."
    http://moz.com/learn/seo/title-tag
    ============================================

    Again, just food for thought.

    About the tags request - my friends son was on Facebook, and he whipped up a couple of lines to put the tags into the title. Thanks for your offer of help though.
  • acrylian Administrator, Developer
    I certainly do know that the title tag is very important in SEO. I just mentioned that I am not sure if it is useful to just put a plain list of tags into. A proper title that uses certain keywords might be the better way.

    Besides that, discussions are welcome and we appreciate all ideas that could possibly make Zenphoto better.
  • Thanks for the clarification.

    In my case, the photos are tagged specifically for what they depict, so it is very useful in describing each image, rather than just being a random spew of generic terms.
  • acrylian Administrator, Developer
    Ok, then it makes surely sense for your purpose.
Sign In or Register to comment.