• Resolved ChillyJava

    (@chillyjava)


    Using Custom Content Shortcode plugin, I have a custom field of “recipe” and a value that has the name of the recipe. Each recipe has been categorized (desserts, soups, breakfast, etc).

    Step 1: To get the breakfast category, I did the following:

    [loop field="recipe" category="desserts"]
        Recipe: [field title]
    [/loop]

    Step 2: I also wanted it to link … so I got to

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

    This gives me the recipe: post title

    What I’d like to do is replace the post title with the custom field value

    ex. recipe: custom field value

    Is this possible?

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Use Custom Value as link title’ is closed to new replies.