Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

Custom Meta Tags in Textpattern

Textpattern does not offer an obvious way to add meta tags to a template, but its easy to implement a custom description and set of keywords for each article.

Excerpt:

Writing custom meta tags for each article is extremely important for search engine optimization, but Textpattern does not offer an easy “meta tag” that can be thrown into a template … Textpattern RC3 is being constantly updated by Dean and company, and as of revision 309, TXP allows you to directly output the contents of the custom fields mentioned above. To use them for meta, follow these easy steps.

Note: in order to make use of this method, you will either need to turn off comments for the section of the article in question or turn off comment auto-append (admin > preferences > Automatically append comments to articles?).

Article Request Count:
Posted here:
11 May 2005
Article modified:
01 Jan 2006

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (4)

this doesn’t work for me. When I add the form it turns my whole page upside down. I end up with a “double header”.

Any ideas?

Thanks
I use an easier way:

For my five sections (not for the blog section) I use < title>< txp:ob1_if_section section="default">... and the same with parts of the description.

For articles in the weblog-section I use for the blog-section < txp:ob1_title order="%category,%sitename" separator=" - " /> ...

Works fine.
Works great for me. Thanks for sharing! :)

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern