• Resolved lemodels

    (@lemodels)


    Hello, I have this PHP code that I am using in a section of my website, the URL is made up of the user’s email and this would be the user’s PDF, I want to show it on the website, the plugin is very good, but I cannot take the URL to show it in the do_shortcode, could you support me or guide me how to do it?

    global $current_user; get_currentuserinfo(); echo '<br><p align="center" style="margin-top: 0; margin-bottom: 0"><a target="_blank" href="https://www.socapital.mx/cta/'; echo ''. $current_user->user_email . "\n"; echo '.pdf"><img src="https://www.socapital.mx/wp-content/uploads/Estado-de-cuenta.png"></a></p>'; 
    $a = "https://www.socapital.mx/cta/";
    $b =  '' . $current_user->user_email . '';
    $c =  ".pdf";
    $url = "$a$b$c";
    
    echo "$url";
    
    echo do_shortcode(' [pdf-embedder url="path-to-pdf.pdf"] '); 
    
    ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Take URL to display PDF’ is closed to new replies.