We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Three Title Tags! Three sets of the same meta tags!

Development and Programming

syrupcore's avatar
syrupcore
20 posts
17 years ago
syrupcore's avatar syrupcore

I’m not sure if this is really a Tome problem but thought I’d try here first. In fact, I’m sure it’s a MY code problem but likely related to my misuse of Tome… 😊

The fun part is this is only happening on the home page.

Here’s my code:

{exp:weblog:entries category="{static_page}" dynamic="off"}
    <title>{title} - PCCG</title>
{/exp:weblog:entries}

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

{exp:weblog:entries category="{static_page}" dynamic="off"}
   {if meta_description != "" || meta_description2 != ""}
    <meta name="description" content="{meta_description}{meta_description2}" />
   {if:else}
    <meta name="description" content="Information about visiting and exploring blah." />
   {/if}
   {if meta_keywords != "" || meta_keywords2 != ""}
    <meta name="keywords" content="{meta_keywords}{meta_keywords2}" />
   {if:else}
    <meta name="keywords" content="blah, blah, blah" />
   {/if}
{/exp:weblog:entries}

There are custom fields in the admin for entering meta info for each page. Works fine on all pages but the home page. It appears to grab the actual info and then two sets of the defaults. you can see the output here: http://portlandchinesegardens.org/ which is the same as http://portlandchinesegardens.org/home

Any thoughts?

Thank you, Will

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Try throw a

limit = "1"

param in your weblo entries tag. Although you could also try LG Better Meta 😉

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Nice site by the way 😊

       
syrupcore's avatar
syrupcore
20 posts
17 years ago
syrupcore's avatar syrupcore

Thank you Leevi, worked a charm.

And thanks for the kind words about the site.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.