Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • ok so thinking about it its an interesting idea maybe could be possible by following this steps
    1- Create a page for each step you are planning to have
    2- Create the Fields Group using ACF
    3- Create a new shortcode for each step
    4- Include a seprate acf_form() in each shortcode created
    5- in acf_form you are able to select the fields you want to appear
    6- using add_action(‘acf/save_post’, ‘function_name’) you can now detect the save of the first step and get the new post id, then you can redirect the user to the next step passing the id as a parameter in the URL
    7- after the user redirected to the next step page, you can now use the id in the URL to update the post created in the first step with the current step fields and so on

    to be honest i didnt try this, but it seems like a good starting point
    good luck

    Hi, If you see [X] in place of image try this solution

    1- try not to include the domain in the URL

    change this : http://www.yourdomain.com/wp-content/upload/blablablabla
    to this : wp-content/upload/blablablabl
    or this : /wp-content/upload/blablablabla

    this means dont use “wp_get_attachment_image” but use “get_the_post_thumbnail_url()”
    and then remove the site url from the full URL , something like

    $siteURL = get_site_url()."/"; 
    $imgurl = get_the_post_thumbnail_url();
    $imgurlonly = str_replace($siteURL,"",$courseImg);

    2- if the above didnt work try to go to /wp-content/plugins/dk-pdf/includes/dkpdf-functions.php and paste the below line after line 186

    $mpdf->showImageErrors = true;

    now when you generate the PDF the error will show up for you and you can debug or post it here

    hope your issue will be solved

    • This reply was modified 8 years, 6 months ago by justtryit87. Reason: spelling error
    • This reply was modified 8 years, 6 months ago by justtryit87.
    Thread Starter justtryit87

    (@justtryit87)

    ok , this might help someone.
    i checked the error log and i was getting this error :

    PHP Fatal error: Call to undefined function mb_internal_encoding() in /plugins/dk-pdf/includes/mpdf60/mpdf.php on line 1519

    this means that “mbstring” is not enabled for php,

    so i solved the issue by loging to WHM to EasyApache and enabled mbsting

    now i am not getting HTTP ERROR 500 when clicking on PDF button

    Thread Starter justtryit87

    (@justtryit87)

    the website http://www.go2-test.com/?page_id=504
    on the video tab

Viewing 4 replies - 1 through 4 (of 4 total)