Single pdf view post id problem?
-
The shortcode e.g., [pdfev_embed_viewer id=”99530″] seems to provide empty view and inspecting the html shows that the data-pdfev-url is empty string even though the id is in place and is correct.
In functions.php:
176 public static function shortcode_view($post_id){
177 $link = \PDFEV_Functions::get_pdf_link();
178 $flipbook = get_option('pdfev_flipbook_status');$post_id is passed but discarded, and get_pdf_link() uses get_the_ID() instead.
“However, this function only works correctly within The Loop or when global
$postis properly set”. I tested by modifying the code so that $post_id is used (and not get_the_ID()), and the PDF was shown correctly.Has anyone else noticed problems with this shortcode?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.