WordPress.org

Ready to get started?Download WordPress

Forums

Conditional page template (6 posts)

  1. adejones
    Member
    Posted 8 months ago #

    Hi everyone
    I want to have a select field in my page template and this has to be conditional ie. if a is selected then do shortcode a, if b is selected then do shortcode b and if c is selected, do shortcode c...

    Any idea how this is done?

    Thanks

  2. graphical_force
    Member
    Posted 8 months ago #

    Can you be more specific? It can be done but what are the conditions that you need met?

  3. adejones
    Member
    Posted 8 months ago #

    It's just one select field with 3 options, if A then do_shortcode A, if B then do_shortcode etc..

    The do_shortcode bits are the php tags for page templates.

  4. graphical_force
    Member
    Posted 8 months ago #

    You can do something like that with Gravity Forms (premium plugin) but I'm not sure if there is any plugin that is free that will do this.

    http://www.gravityforms.com/

  5. adejones
    Member
    Posted 8 months ago #

    I have a gravity forms developer license but wasn't too sure how this was achievable with that because the drop down field to determine what content to show isn't going to submit anything, just make content appear underneath.

  6. graphical_force
    Member
    Posted 8 months ago #

    Then if that is the case, you should be asking on there forums since you now have a gravity forms questions.

Reply

You must log in to post.

About this Topic