I have a column called entry_type on my data base, this entry_type have only 2 possible values: "pagina" or "post".
I want to echo a different meta tag depending on the values of entry_type.
When the value of entry_type = pagina i want to echo the meta tag below:
<meta property="og:type" content="website">
And if the value of entry_type = post i want to echo the meta tag below:
<meta property="og:type" content="article">
<meta property="article:author" content="">
<meta property="article:publisher" content="" />
<meta property="article:published_time" content="">
<meta property="article:modified_time" content="">
How can i do it?
Aucun commentaire:
Enregistrer un commentaire