ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot figure out how to link custom field in my other weblogs

December 29, 2010 12:05am

Subscribe [2]
  • #1 / Dec 29, 2010 12:05am

    bkaveny8

    2 posts

    Hello, I am a total ee novice - I recently did an EE SEO tutorial at seo tutorial  where we added a custom weblog field “keywords” and then added this to the template header:

    <meta name="keywords" content="{exp:weblog:entries}{keywords}{/exp:weblog:entries}" />

    This worked for getting a new keywords field to appear in the posts, and it shows up when I view source.

    Now, I have 2 other weblogs that I want to add it to but it doesn’t show up in the source - when I added the keywords field to these weblogs, I had to name it something different since keywords was already taken, so I called it keywords3 which I added to “home”

    I tried just adding {keywords3} but it did not work {exp:weblog:entries weblog="homes"} {keywords3}{/exp:weblog:entries}
    (because the weblog is called homes)

    That did not work either!

    I think the “homes” weblog has a module/extension installed because it is a homes list for real-estate - this may have php code that is interrupting the keywords from working.

    It looks like this Homes

    So I’m not sure what the proper code is to make it show up.
    What should I do?

  • #2 / Dec 29, 2010 10:29am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, bkaveny8.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Which version/build of EE1.x are you using? You can find that out at the bottom of any control panel page.

    You may just need to add weblog=“home” to your exp:weblog:entries tag.

    Try a standalone template with just this code in it:

    {exp:weblog:entries weblog="home"}
    <h3>{title}</h3>
    <p>{keywords3}<br />
    {/exp:weblog:entries}

    Does that work?

  • #3 / Dec 30, 2010 3:23am

    bkaveny8

    2 posts

    I am using expression engine v1.6.4
    I just tried that and it did not work.

  • #4 / Dec 30, 2010 9:21am

    Sue Crocker

    26054 posts

    Is there a reason you’re on such an old build of EE1.x? The most recent version is 1.7.0, and is a recommended security upgrade. Is it possible to do so?

  • #5 / Jan 09, 2011 10:09pm

    bkaveny8

    2 posts

    I’ve just updated to 1.7.0. but it’s still not working. I think a plugin is interfering. Any other ideas?

  • #6 / Jan 10, 2011 9:55am

    Sue Crocker

    26054 posts

    If you’re putting in the code I mentioned in its own template, a plugin shouldn’t be interfering.

    Do you a title at least from the code I mentioned earlier?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases