Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-08-09 16:16:11

lindabb
Member
Registered: 2023-02-17
Posts: 132

meta_description is not showing on a page

Hello,
I have this in my meta form,
<txp:meta_description format=“meta” />
This shows the description on the page header when I click view on articles (view function on admin side) page.
when close the browser, and click on the same section to the page , there is no meta description.

any idea, I’m using latest version.
Thank you

Offline

#2 2024-08-09 20:52:29

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,734
Website

Re: meta_description is not showing on a page

Just a guess: txp:meta_description responds to context, so it will output:

  • On a domain.com page: the Description field of the Default section
  • On a domain.com/section/ page: the Description field of the relevant section
  • On a domain.com/category/category-name page: the Description field of the relevant category
  • On a domain.com/section/article-name the Description field of the relevant article

Could it be that on your second attempt, you’re not looking at the same page?

BTW, as format="meta" is the default, you can just use:

<txp:meta_description />

TXP Builders – finely-crafted code, design and txp

Offline

#3 2024-08-10 15:28:54

lindabb
Member
Registered: 2023-02-17
Posts: 132

Re: meta_description is not showing on a page

Thank you so much, that is very good to know, I was doing wrong way.

Offline

Board footer

Powered by FluxBB