Support

Account

Home Forums Front-end Issues How to embed pdf on page Reply To: How to embed pdf on page

  • Thanks, it better now, but I got a weird error:

    Missing PDF “https://mysite.com/uploads/Array”

    Here’s code again

    <?php $pdf = get_field( 'pdf' ); ?>
    <?php if ( $pdf ) { ?>
    
    <?php echo do_shortcode('[pdf-embedder url="'.get_field('pdf').'"]'); ?>
    <?php } ?>