• I am using this code then using the custom field to embed the videos…

    <div id=”videoblock”>
    <?php $key=”videoembed”; echo get_post_meta($post->ID, $key, true); ?><P/>
    </div>

    Then in the custom field I use videoembed and then put a embed video code under value. It works find but I am trying to do something a bit more involved. I would like to have multiple videoembed area such as $key=”videoembed1″ , $key=”videoembed2″ etc.. so I can embed the same video but from multiple sources. I would then like to have a drop down menu where you can select which video to call, which will then display the video in the videoblock div. Does anyone have any idea how I can do that?

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter central101

    (@central101)

    Anyone?

    Thread Starter central101

    (@central101)

    Bump

    Thread Starter central101

    (@central101)

    Last try..

    You could do it all on the client side with JavaScript, or make a form. If you do it in JavaScript, you could either just load all the different embed codes at once, and then insert them into the <div> whenever one is chosen from the dropdown, or you could pull the code from the server asynchronously. Making a form is probably the easiest way to go, but requires the page to reload whenever someone chooses a video.

    Thread Starter central101

    (@central101)

    thanks, I figured it out.. works now.. I decided to just use a form to show and hide the divs… with a javascript.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with custom fields?’ is closed to new replies.