PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Short code not working.

  1. rlpartida
    Member

    Hello GF people,

    I’m trying to embed a form (optin form with an image as a background), something like this:

    <div style="background: url('http://www.straightforex.com/sfgf/images/blue.jpg') 0 0 no-repeat; height: 200px; align: center;">
    <p style="color: white; font-size: 30px; text-align: center;">Análisis del Mercado</p>
    <p style="color: white; font-size: 16px; text-align: center;">Recibe en tu correo mis análisis, ideas de operación y señales del mercado.</p>
    [gravityform id="5" name="Optin Secondary" title="false" description="false"]
    </div>

    The problem is, the short code is not working, instead of displaying the form it displays the code.

    Now, I’m using the AdRotate plug in to insert the code after each post. Here is the link to the plugin:

    http://wordpress.org/extend/plugins/adrotate/

    Any ideas how I can fix this?

    I appreciate your help.

    Regards,

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  2. Does the adrotate plugin support the usage of shortcodes?

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  3. rlpartida
    Member

    Hey Rob,

    It says it does:

    http://www.adrotateplugin.com/page/features.php

    Here is how the shortcode (after the post) looks on the site:

    http://www.straightforex.com/esp/2012/08/30/este-seria-mi-plan-de-operacion-para-el-eurusd-seria/

    Thanks!

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  4. Hmm, I'm not 100% sure. You could try placing it via a function call since it says it supports PHP as well:
    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  5. rlpartida
    Member

    Thanks for your help...

    Fixed it calling the form in php from the theme itself, using php:

    <?php gravity_form(1, false, false, false, '', false); ?>

    Cheers,

    Posted 12 years ago on Thursday August 30, 2012 | Permalink

This topic has been resolved and has been closed to new replies.