make contact form 7 display contact form inside [login to view URL] without shortcode

Selesai Dipasang Feb 23, 2015 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

I need to call a contact form 7 form inside the [url removed, login to view] without using do_shortcode.

My function uses ajax (call for admin ajax) and therefore is triggered before shortcodes can be registered. The result is that the shortcode is echoed and not the action associated with it. To make it work I need to echo the function bound with shortcode which is So in essence I want to echo the function that is hooked to that shortcode:

wpcf7_contact_form_tag_func();

I am taking info from the shortcode here:

[contact-form-7 id="4272" title="Variable Email Enquiry"]

So I can see there two parameters in the $args array - id and title

function test_alternate_shortcode_2(){

$atts = array(

'id' => 4272,

'title' => 'Variable Email Enquiry');

//$cf7 = do_shortcode('[contact-form-7 id="4272" title="Variable Email Enquiry"]');

if(function_exists('wpcf7_contact_form_tag_func')){

echo wpcf7_contact_form_tag_func($atts);

} else {

echo 'referring incorectly';

}

}

what gets echoed is [contact-form-7 404 "Not Found"]

I need someone to make this function work correctly

PHP WordPress

ID Proyek: #7190398

Tentang proyek

6 proposal Proyek online Aktif Feb 23, 2015

Diberikan kepada:

mfali420

we are preety good with plugins i am a professional designer and developer i have a great team full of experienced people Our recent work [login to view URL] [login to view URL] Lebih banyak

€29 EUR dalam 1 hari
(2 Ulasan)
0.3

6 freelancer rata-rata menawar €33 untuk pekerjaan ini

sandyIN

A proposal has not yet been provided

€42 EUR dalam 1 hari
(250 Ulasan)
7.9
doramey2012

A proposal has not yet been provided

€50 EUR dalam 1 hari
(72 Ulasan)
5.8