<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Machform Function / Plugin for Wordpress</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Machform Function / Plugin for Wordpress</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:01:50 +0000</pubDate>

<item>
<title>celsiusmarketing on "Machform Function / Plugin for Wordpress"</title>
<link>https://www.machform.com/forums/topic/machform-function-plugin-for-wordpress#post-24132</link>
<pubDate>Sat, 26 Sep 2015 03:00:54 +0000</pubDate>
<dc:creator>celsiusmarketing</dc:creator>
<guid isPermaLink="false">24132@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;No clue isaacl, I stay away from repository wordpress plugins, as many times they become abandoned. I created this as a simple tool for anyone here that wishes to use this on their wordpress site.
&#60;/p&#62;</description>
</item>
<item>
<title>isaacl on "Machform Function / Plugin for Wordpress"</title>
<link>https://www.machform.com/forums/topic/machform-function-plugin-for-wordpress#post-24131</link>
<pubDate>Fri, 25 Sep 2015 23:18:50 +0000</pubDate>
<dc:creator>isaacl</dc:creator>
<guid isPermaLink="false">24131@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How is this different than this plugin? &#60;a href=&#34;https://wordpress.org/plugins/machform-shortcode/&#34; rel=&#34;nofollow&#34;&#62;https://wordpress.org/plugins/machform-shortcode/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>celsiusmarketing on "Machform Function / Plugin for Wordpress"</title>
<link>https://www.machform.com/forums/topic/machform-function-plugin-for-wordpress#post-24110</link>
<pubDate>Wed, 23 Sep 2015 03:28:40 +0000</pubDate>
<dc:creator>celsiusmarketing</dc:creator>
<guid isPermaLink="false">24110@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hey everyone, I kept running into javascript conflicts with machforms on wordpress sites so I created this nifty little shortcode plugin that has been a big help.&#60;/p&#62;
&#60;p&#62;You can add this to your theme's functions.php file or you can simply create a new wordpress plugin and drop this code in there (which is what I suggest you do).&#60;/p&#62;
&#60;p&#62;To call the form within a post all you need to do is use this shortcode:&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;[macform id=12345 height=12345]&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps! It has been a big help for our agency!&#60;/p&#62;
&#60;p&#62;&#60;code&#62;// Enqueue Scripts [MACHFORM]&#60;br /&#62;
function machform_scripts() {&#60;br /&#62;
    //register scripts for our theme&#60;br /&#62;
    wp_register_script('machform-post-message', 'http://YOUR-DOMAIN.COM/js/jquery.ba-postmessage.min.js', '', '', true );&#60;br /&#62;
    wp_register_script('machform-loader', 'http://YOUR-DOMAIN.COM/js/machform_loader.js', '', '', true );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// Shortcode [MACHFORM]&#60;br /&#62;
function machform_shortcode($atts){&#60;br /&#62;
    // Load Machform Scripts in Footer&#60;br /&#62;
    wp_enqueue_script( 'machform-post-message' );&#60;br /&#62;
    wp_enqueue_script( 'machform-loader' );&#60;/p&#62;
&#60;p&#62;    //Attributes added to shortcodes&#60;br /&#62;
    Extract( shortcode_atts( array(&#60;br /&#62;
            'id'=&#38;gt;'none',&#60;br /&#62;
            'height'=&#38;gt;'none',&#60;br /&#62;
            ), $atts ));&#60;br /&#62;
    $formcode = '&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;var __machform_url = \'http://YOUR-DOMAIN.COM/embed.php?id='.$id.'\'; var __machform_height = '.$height.';&#38;lt;/script&#38;gt;&#38;lt;div id=&#34;mf_placeholder&#34;&#38;gt;&#38;lt;/div&#38;gt;';&#60;/p&#62;
&#60;p&#62;    return do_shortcode($formcode);&#60;br /&#62;
};&#60;/p&#62;
&#60;p&#62;add_action( 'wp_enqueue_scripts', 'machform_scripts' );&#60;/p&#62;
&#60;p&#62;add_shortcode(&#34;machform&#34;, &#34;machform_shortcode&#34;);&#60;/code&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
