Support

Account

Forum Replies Created

  • Thank you!

  • Thanks! I found a similar post to this last week but it takes down my entire site.

    I feel that I am missing something on my end. Here are all the custom field code I’m using:

    <p><?php the_field('vendor'); ?></p>
    			<p><?php the_field('manufacturer'); ?></p>
    			<p><?php the_field('component'); ?></p>
    			<p><?php the_field('component_description'); ?></p>
    			<p><?php the_field('model_or_part_number'); ?></p>
    			<p><?php the_field('part_classification'); ?></p>
    			<p><?php the_field('information'); ?></p>
    			<p><?php the_field('upload_document'); ?></p>
    			<p><?php the_field('upload_document_(2)'); ?></p>
    			<p><?php the_field('upload_document_(3)'); ?></p>
    			<p><?php the_field('upload_document_(4)'); ?></p>

    I thought I could modify it using your recommendation:

    <p><?php the_field('vendor'); ?></p>
    <p><?php the_field('manufacturer'); ?></p>
    <p><?php the_field('component'); ?></p>
    <p><?php the_field('component_description'); ?></p>
    <p><?php the_field('model_or_part_number'); ?></p>
    <p><?php the_field('part_classification'); ?></p>
    <p><?php the_field('information'); ?></p>
    if( get_field('upload_document') ): ?><a href="<?php echo $url; ?>" >Download File "<?php echo $title; ?>"</a><?php
    endif;
    if( get_field('upload_document_(1)') ): ?><a href="<?php echo $url; ?>" >Download File "<?php echo $title; ?>"</a><?php
    endif;
    if( get_field('upload_document_(2)') ): ?><a href="<?php echo $url; ?>" >Download File "<?php echo $title; ?>"</a><?php
    endif;
    if( get_field('upload_document_(3)') ): ?><a href="<?php echo $url; ?>" >Download File "<?php echo $title; ?>"</a><?php
    endif;

    but this kills my site…

    I know I’m missing something, but I can’t see it…

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.