luckykind
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 3.1 Update Causing 28px top-spacing in html body“I got the solution” without it being posted… that really is awesome.
lol… go figure, this would be one of the first in a Google search…
Forum: Fixing WordPress
In reply to: call function called by [embed] shortcode directI used your solution, however I was running into problems with other filters applied to ‘the_content’… so after much searching… I finally came upon a better solution to this (see below) and wanted to save others the aggravation… 🙂
global $wp_embed; $post_embed = $wp_embed->run_shortcode('[embed]your-video-url[/embed]');Mod Edit: Modified the code to global
$wp_embedinstead of creating a new instance of theWP_Embedclass which is the incorrect way to do it.Forum: Plugins
In reply to: [Plugin: MM Forms] How to place the code in a template with php ??Hi Joan,
Not sure if Tom ever got back to you… or if this is what you’re after, but this worked for me, and might help you or someone else.
Add something like this inside your PHP:
$x = '[form 2 "checkout"]'; echo do_shortcode($x);Then if you’re using 2.9.2 add this to your function.php file: (Thx josephsong)
// mmforms adaptor for wp 2.9.2 function show_mm_form($atts, $content = null) { global $mmf; if ($mmf) { return $mmf->the_content_filter_callback(array('1' => $atts[0])); } } add_shortcode('form', 'show_mm_form');