WordPress.org

Ready to get started?Download WordPress

Forums

Completing Dynamic Values (1 post)

  1. agentauto
    Member
    Posted 2 years ago #

    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 '

  2. <span class="strong">'.$options['stocktext'].':</span> '.$fields['stock'].'
  3. ';}else { echo ''; }?>

    Logated in the Single-GTCD.php file.

    Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags