• Hello,
    I’m trying to add som og: tags, and I’m having some problems with Category and Tags pages.
    If I use the_permalink(), it gives me the URL of the fist post in that Category/Tag, and what I want is the Category URL (with no page number, like the canonical tag).
    IE: If I’m in https://www.example.com/category/food I want
    <meta property="og:url" content="https://www.example.com/category/food/"/>
    not
    <meta property="og:url" content="https://www.example.com/123/fruits/" />

    • This topic was modified 7 years, 1 month ago by roxer82.
    • This topic was modified 7 years, 1 month ago by roxer82.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get Category URL when is_category()’ is closed to new replies.