• Hi, I’m having a problem where no link is returned from the functions specified in the Readme. I’m using the code pretty much verbatim, on a page; I’ve verified that the functions are accessible and I’ve tried both of the approaches below:

    if( function_exists('get_latex_url')):
    $latex_url = get_latex_url( 'single_post', get_the_ID());
    endif;
    
    if( function_exists('get_latex_url')):
    $latex_url = get_latex_url( 'single_post', get_page_by_title("Title")->ID);
    endif;

    In both cases, calling
    <a href="<?php echo $latex_url ?>">PDF</a>
    returns a blank url: <a href>PDF</a>. Any ideas?

    Thanks!

    https://www.ads-software.com/extend/plugins/latex-everything/

Viewing 1 replies (of 1 total)
  • Plugin Author divinenephron

    (@divinenephron)

    First, verify that PDFs are being generated for the posts concerned. Go to Media->Library in the admin section and look for a PDF that is attached to the post/page of concern. Check that it has a File URL and that you can visit it.

    Next, verify that the ID you’re providing to the function also exists by adding a temporary comment near to your link:

    <!-- ID: <?php echo get_the_ID() ?> -->

    Do both of these exist?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Latex Everything] No PDFs generated?’ is closed to new replies.