WordPress.org

Support

Support » Plugins and Hacks » Completing Dynamic Values

Completing Dynamic Values

  • agentauto
    Member

    @agentauto

    I was hoping you could help me with this question.

    I am needing to create a shortcode that can call the value of the Stock field on each particular listing.

    For example, check this out – http://style.agentauto.com/inventory/200/
    On the left, I have a form by formidable pro. They allow to put shortcodes into the fields if you want to dyncamically fill the form. How could I dynamically call the stock number? I would think it would be done by creating a shortcode around the Stock number php line
    <?php if ( $fields[‘stock’]){ echo ‘

  • <span class=”strong”>’.$options[‘stocktext’].’:</span> ‘.$fields[‘stock’].’
  • ‘;}else { echo ”; }?>

    Logated in the Single-GTCD.php file.

    Any suggestions?

  • The topic ‘Completing Dynamic Values’ is closed to new replies.