Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-25 13:49:54

pexman
Member
Registered: 2016-02-27
Posts: 61

article meta description

In the admin panel you can give a different meta description for every article. If I fill out this form I thought it would be have an output in the meta description of the website source code to guide the search engines. Unfortunately it dosn`t do that. It displayed always the description I`ve entered in the template. What is to do that I can use this feature?

Offline

#2 2020-11-25 14:20:51

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: article meta description

Hi

You need to use txp:meta_description tag into your template using this code :

<txp:if_individual_article>
    <txp:meta_description format="" />
</txp:if_individual_article>

Look at the documentation : https://docs.textpattern.com/tags/meta_description

Cheers.

Offline

#3 2020-11-25 16:35:02

pexman
Member
Registered: 2016-02-27
Posts: 61

Re: article meta description

Thank you very much. With keywords it is similar. I could have guessed that there would be a tag for it.

Offline

#4 2020-11-25 18:22:23

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

Re: article meta description

I think that txp:meta_description is context-gnostic and txp:if_individual_article is not needed as the meta-description tag calls the relevant fields in sections and categories.


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

Offline

Board footer

Powered by FluxBB