StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-13-2010, 10:43 AM
gordonmartin gordonmartin is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 388
Default Featured Video Suggestion

If I wanted to put a featured video at the top (in the place where you would normally place the dynamic featured content gallery at the top of the main page)

What way would I go about this?

I want to be able to put a featured video at the top of that page, but on a weekly basis I want to replace it with a fresh video, and have the other videos still in the blog archives, and also to shopw up as a recent post

What way would you suggest to do this?

Plugin?

Or editing home.php

If editing home.php what would I need to add in there?

Any Comments Appreciated

Warmest Regards,

Gordon
__________________
<a href="http://whoisgordonmartin.com/">http://whoisgordonmartin.com/</a>
  #2  
Old 06-13-2010, 11:04 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default

open home.php

find and remove the bold

<div id="homepage">

<?php // checks to see if the Featured Content Gallery plguin is enabled - if it isn't, nothing will diplay ?>
<?php if (function_exists('gallery_styles')) : ?>

<div id="homepagetop">
<div class="featuredtop">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>
</div>
<?php endif; ?>
<?php // end ?>


in it's stead put

PHP Code:
 
    <div id="homepage">
    
        
             <div id="homepagetop">
            <div class="featuredtop">
<?php $recent = new WP_Query("cat=14&showposts=1");  while($recent->have_posts()) :  $recent->the_post();?>
            <h1><?php the_title(); ?></h1>
          

            <?php the_content(__('Read more''studiopress'));?><div class="clear"></div>
           
                <?php endwhile; ?>


            </div>
        </div>
create a video category

Replacing 14 with your category number

then you only have to create a post and it will pull automatically.
  #3  
Old 06-13-2010, 11:19 AM
gordonmartin gordonmartin is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 388
Default

Thanks for your very comprehensive answer Debra, very much appreciated. At the moment, I have a dynamic featured Content Galley in there, at the moment, it pulls the images from the latest posts. From what I can see though, it is only for static images, would that be right, or could it be used for video also? I am thinking the way that you have described to me would be a better way to go?

Warmest Regards,

Gordon
__________________
<a href="http://whoisgordonmartin.com/">http://whoisgordonmartin.com/</a>
  #4  
Old 06-13-2010, 11:37 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default

I don't believe that DCG pulls video at this time. You could keep a back up of your current page code, try the option I gave you and if dissatisfied return to the old code.
  #5  
Old 09-07-2010, 02:07 PM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default

Raising an old thread from the dead.... :smile:

No, DCG doesn't handle video.
__________________
Ade
Themessence - Studiograsshopper

WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget

Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL!
Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort.
 

Tags
featured video

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need suggestion for video in WP ghettohacker General Discussion 4 01-11-2011 08:17 AM
gallery and video plugin suggestion help harris414 General Discussion 3 12-03-2009 09:22 PM
Adding Allure's Featured Video & More Featured Video to Corp BrianStockwell General Discussion 7 07-16-2009 10:45 AM
Video Page Suggestion johnny9k General Discussion 1 07-02-2009 02:25 PM


All times are GMT -5. The time now is 05:18 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.