Using WP-MPDF with Advanced Custom Fields
-
Hi,
I recently updated a client’s site from “Magic Fields” plugin to “Advanced Custom Fields” plugin with the WP-MPDF plugin and now anytime I click the PDF icon to generate the page I just get a white blank page. I tried setting my WP-MPDF folder permissions to 777 but I cannot do that without contacting my server (which i would like to avoid) plus I am not sure the permissions is the problem.
This is my code for the page template. Any insight is welcome.
<div class="entry-content"> <?php if (((get_field('data_card') != '') || (get_field('counts_') != '') || (get_field('more_info') != ''))) : ?> <?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(false,'<img src="'.get_stylesheet_directory_uri().'/images-list/pdf.png">','Login',true); ?> <?php// if(function_exists('pf_show_link')){echo pf_show_link();} ?> <?php endif; ?> <?php if ($post->post_content == '') : ?> <?php if (((get_field('data_card') == '') && (get_field('counts_') == '') && (get_field('more_info') == ''))) : ?> <p>This database is currently under construction.</p> <?php endif; ?> <?php else : ?> <?php the_content(); ?> <?php endif; ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php if (((get_field('data_card') != '') || (get_field('counts_') != '') || (get_field('more_info') != ''))) : ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using WP-MPDF with Advanced Custom Fields’ is closed to new replies.