WordPress.org

Ready to get started?Download WordPress

Forums

FREEULTIMATE VIDEO GALLERY
how to add all the videos in the template page of a theme? (6 posts)

  1. newbie99
    Member
    Posted 3 years ago #

    hi

    i want to create a video gallery such that without me adding [freeultimate_video ID/] to a post. can we have a php function so that i can write it in a page of a theme like <?php wppa_albums(); ?> in wppa photo album plugin?

    please help me

    http://wordpress.org/extend/plugins/freeultimate-video-gallery/

  2. newbie99
    Member
    Posted 3 years ago #

    guys please help me.....

  3. newbie99
    Member
    Posted 3 years ago #

    ...

  4. Donald Gilbert
    Member
    Posted 3 years ago #

    If there's a shortcode, there is a php function that process it. Adding the shortcode is an easy way add PHP functions to your pages.

  5. Donald Gilbert
    Member
    Posted 3 years ago #

    After taking a look at the plugin, they are implementing the shortcode in an outdated way, so it is not obvious what the php function is to a novice user.

    The PHP function you need to add to a page is:

    <?php
    $video_id = 'VIDEO ID HERE';
    freeultimate_video_render(array('conta' => '0', 'id' => $video_id));
    ?>

    Like I said, it wouldn't be obvious as to what the function is to a novice user, so please, copy the code exactly and change only the VIDEO ID HERE and it should work.

    *note - untested

  6. Donald Gilbert
    Member
    Posted 3 years ago #

    oops - looks like you may need to put an 'echo' before 'freeultimate_video_render', like this:

    echo freeultimate_video_render

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic