Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$10
Adding a Do Shortcode via a Custom Field
Looking for a suggestion to a problem I am having.
I have a theme, that has some broken jQuery on it. The broken jQuery means that I cannot Embed a Gravity Form using a template tag, into the php file.
I can insert a form using the standard [shortcode] into the post, which works, but i cannot position this where i want to.
Can any answer and give me the code if possible to do the following:
<?php echo do_shortcode('[shortcode]')<?php echo get_post_meta($post->ID, 'domain_register_form', true); ?>; ?>It looks a mess but essentially I want to have a Do Shortcode, get shortcode as a custom field.
Any ideas?
Failing that can anyone fix the jQuery issues here: http://bit.ly/qTIsxh
Justin Walmsley | 07/18/11 at 12:36pm
Edit
Tutorial: How to assign prize money
(5) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
07/18/11
12:41pmUtkarsh Kukreti says:What exactly does your custom field 'domain_register_form' contain? Gravity form id?
- 07/18/11 12:59pm
Justin Walmsley says:Yeah just trying to add the Gravity Form, form specific, Shortcode:
[gravityform id=1 name=DomainRegistration Form title=false]
I have added the form (using the shortcode) to the post text area so you can see the form working.
- 07/18/11 12:59pm
-

Last edited:
07/18/11
12:47pmJurre Hanema says:Shouldn't be too hard:
<?php
$shortcode = get_post_meta($post->ID, 'domain_register_form', true);
echo do_shortcode($shortcode);
?>
- 07/18/11 12:56pm
Justin Walmsley says:Didn't work :(
- 07/18/11 12:56pm
-

Last edited:
07/18/11
12:59pmGabriel Reguly says:Hi,
Why not use Google's jQuery?
http://wordpress.org/extend/plugins/use-google-libraries/
Regards,
Gabriel- 07/18/11 1:01pm
Justin Walmsley says:I tried doing that earlier! Great minds think a like.
But it wouldn't call the scripts :(
I only really know HTML, CSS a tiny bit of PHP and making minor adjustments to WordPress Templates
- 07/18/11 1:01pm
-

Last edited:
07/18/11
6:02pmRomel Apuya says:have you tried this?
<?php echo do_shortcode('[shortcode]').get_post_meta($post->ID, 'domain_register_form', true);?>
Previous versions of this answer: 07/18/11 at 6:02pm
- 07/19/11 9:10pm
Romel Apuya says:hi,
try this
<?php echo do_shortcode('["name_of_post_type","domain_register_form" ]'); ?>
where name_of_post_type is the name of your post type
and domain_register_form is the name of the custom field.
- 07/19/11 9:10pm
-

Last edited:
07/21/11
4:41amGeraint Palmer says:a good place to start to look for you jquery problems is the 404 from these includes.
wp-whois.js Failed to load resource: the server responded with a status of 404 (Not Found)
swstyles.css Failed to load resource: the server responded with a status of 404 (Not Found)
not the css file, but if a function in the missing wp-whois.js is called it would probably kill the jquery process dead, so either disable that plugin, or find out where its missing js file is, should probably fix it.Previous versions of this answer: 07/21/11 at 4:41am
This question has expired.
Current status of this question: Community pot
Please log in to add additional discourse to this page.
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
