Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ChillyJava

    (@chillyjava)

    Doh. Figured it out

    <h3>Breakfast</h3>
    [loop type="post" field="recipe" category="breakfast-ideas-2"]
    Recipe: <a href="[content field='url']">[content field="recipe"]</a>
    [/loop]

    Simply had to replace [content field=”title“] with [content field=”recipe“]

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Yes – in this case, it would be better not to specify field="recipe" for the loop. This parameter is for another purpose, to search posts by field value.

    Also, I recommend the shorter way to display the field:

    [loop type="post" category="breakfast-ideas-2"]
    Recipe: <a href="[field url]">[field recipe]</a>
    [/loop]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom field value as the link text’ is closed to new replies.