Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » seo

#1 2018-03-19 06:33:17

altezzasys
Banned
Registered: 2018-03-19
Posts: 1

seo

I have a website built with Textpattern 4.5.7 and I need to output different description metadata in a section (Podcast) and in each article belonging to that section. Unfortunately

Offline

#2 2018-03-19 06:43:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,032
Website GitHub Mastodon Twitter

Re: seo

Hi altezzasys and welcome to txp.

An update to txp 4.6.2 is recommended as it has fields and tags to do exactly what you need.

Re your 4.5.7 install we would have to know how your templates are but something like the following might work:

<txp:if_article_list>
<txp:if_section name="podcast">
<meta name="description" content="your meta description for the podcast section" />
</txp:if_section>
<txp:if_section name="">
<meta name="description" content="Your meta description for pages using the default section - includes the front page" />
</txp:if_section>
<txp:if_section name="other_section">
<meta name="description" content="another section... etc" />
</txp:if_section>
</txp:if_article_list>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2018-03-19 12:02:17

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: seo


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

  1. Index
  2. » How do I…?
  3. » seo

Board footer

Powered by FluxBB