Forum Replies Created

Viewing 1 replies (of 1 total)
  • @sevenspark

    dynamic text was not generating data. It displays the same text. Kindly help with the steps to resolve.

    I have tried with below shortcode in my form

    [dynamichidden ticket_id “quoteticket”]
    [dynamictext dynamictext-433 “‘quoteticket'”]

    ***********Code added in functions.php************

    /* Generate Quote Ticket */
    function genTicketString() {
    $length = 8;
    $characters = “0123456789”;
    for ($p = 0; $p < $length; $p++) {
    $string .= $characters[mt_rand(0, strlen($characters)-1)];
    }
    return $string;
    }
    add_shortcode(‘quoteticket’, ‘genTicketString’);

    It was working fine previously. from last week it was not working. I was new to word press Kindly help with step by step process to resolve this issue

Viewing 1 replies (of 1 total)