Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can i create video gallery on a page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of Alan
    Alan
    Member

    @uloga

    Hi, this is really simple to build.

    1. you need to have post thumbnail for each video post that you add. https://codex.wordpress.org/Function_Reference/the_post_thumbnail
    2. you can then create a category with an name for example ” hip hop “. http://www.youtube.com/results?search_query=how+to+add+categories+wordpress&aq=0m&oq=add+categories+word
    3. every time you add a hip hop video post, you need to select the hip hop as category for that post.

    now you need to modify you’r archive.php file so that it accepts post thumbnails,here is an example ….

    
    <div id="content">
    <div class="padder">
    
    <div class="page" id="blog-archives">
    <h3 class="my-title"></h3>
    
    <div class=&quot;post&quot; id=&quot;post-">
    <div class="post-content">
    
    <?php
    if (
    function_exists('the_post_thumbnail') &&
    current_theme_supports("post-thumbnails") &&
    has_post_thumbnail()
    ) :
    ?>
    <a href=&quot;" title="">
    </a>
    
    <h2 class="posttitle"><a href=&quot;" rel="bookmark" title=" "></a></h2>
    
    </div>
    
    </div>
    
    <h2 class="center"></h2>
    
    </div>
    <div id="clear"></div>
    <div class="navigation">
    
    <div class="alignright"></div>
    <div class="alignleft"></div>
    
    </div>
    
    </div><!-- .padder -->
    </div><!-- #content -->

    now all you need to do is style it and create a link that links to your category,in your case it would be something like http://www.yoursite.com/category/hip-hop

    I hope this helps.Sorry but I really don’t have much time at this moment to go into details,I’m working on a brand new community for lovethistune,soon as I finish it then I’ll post this theme with the theme framework that I’m also currently working on for download at http://www.uloga.net

    LTT’S Current theme is for BP testing only.

    Profile photo of funmi omoba
    funmi omoba
    Participant

    @funmi-omoba

    Thanks so much Allan, i really love your video gallery. but will this steps work for page? here is how i want to use it, http://www.mysite.com/“video” whereas video is a page not post. will all the video show on video page if i follow those steps. sorry if it sound dumb

    regards

    Profile photo of funmi omoba
    funmi omoba
    Participant

    @funmi-omoba

    Hi, i followed number (1) instructions but got only photo post thumbnails and not video,so i used video post thumbnails plugin and i managed to have thumbnails of all the video post aswell, i then copied the above code to my Archive as directed, i have a “Page” named “Video” and that is where i want all the video from post to be showing, so how can i link video post to the page named VIDEO. sorry for this long story am newbie

    regards

    Profile photo of Alan
    Alan
    Member

    @uloga

    Sorry,haven’t seen your response since there are no notifications on activity updates.
    As I said before,I really don’t have time to go into details ,I’ll share this theme @ uloga.net soon as I finish the framework I’m working on..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can i create video gallery on a page’ is closed to new replies.
Skip to toolbar