• Resolved lazarev1985

    (@lazarev1985)


    I want to use field {@videolinkdoc} in tag href for current page. How i can do it?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    <a href="{@videolinkdoc}>Video</a> Is that what you mean? Please be more specific if you need something else.

    Thread Starter lazarev1985

    (@lazarev1985)

    If i before use <h1>[pods field=”namedoc”]</h1>.

    I have 5 fields for tamplates. And i want use it in html tegs.

    <h1>[pods field=”namedoc”]</h1>
    <p class=”special-doc”>[pods field=”profdoc”]</p>
    <div class=”row”>
    <div class=”col-lg-3 text-expiriens-banner”>Опыт<br>
    работы с</div>
    <div class=”col-lg-3 year-number”><div class=”year-wrap”>
    [pods field=”experiencedoc”]</div>
    </div>
    <div class=”col-lg-6 year-text”>года</div>

    Where mistake?

    Plugin Contributor Jim True

    (@jimtrue)

    This really isn’t an efficient way to output this content. You should be using Pods Templates and creating one template like:

    
    <h1>{@namedoc}</h1>
    <p class=”special-doc”>{@profdoc}</p>
    <div class=”row”>
    <div class=”col-lg-3 text-expiriens-banner”>Опыт<br>
    работы с</div>
    <div class=”col-lg-3 year-number”><div class=”year-wrap”>
    {@experiencedoc}</div>
    </div>
    <div class=”col-lg-6 year-text”>года</div>
    

    Then you can call the whole template with one shortcode. You still haven’t told me what the issue is; I can’t help you without knowing that.

    Thread Starter lazarev1985

    (@lazarev1985)

    If i use {@namedoc} without [pods], do not show value. I want loop for current page.

    [pods]
    <h1>{@name}</h1>
    <p>{@biografi}</p>

    [/pods]

    Only current page.

    Plugin Contributor Jim True

    (@jimtrue)

    If you mean a relationship field, you would need to use an [each][/each] block.

    [pods][/pods] with nothing else will _only_ work on the current post. If you want to do a loop through a post-type, you have to use [pods name=”pods-name”], etc.

    Check out the Documentation for the Pods Shortcode
    Check out the Documentation for Using Magic Tags and Template Tags in Pods Templates

    And check out this video for Grow Beyond Posts and Pages which gives an overview of how Pods Works and how to display content on your website: https://youtu.be/fxpH68u3sgw

    Unfortunately, you’re not giving enough information or being specific enough for me to be able to assist you, which I think is due to not understanding how our plugin works. Please review the documentation provided above and if you still have questions, open another ticket or join us on our Slack Chat at https://pods.io/chat/ and I’ll try to help out more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘use field {@videolinkdoc} in tag href’ is closed to new replies.