Grow your CSS skills. Land your dream job.

WORDPRESS: Display a Featured Post on homepage?

  • # May 20, 2013 at 1:42 am

    I followed [this tutorial](http://wp.tutsplus.com/tutorials/creative-coding/youtube-and-vimeo-video-gallery-with-wordpress/ “http://wp.tutsplus.com/tutorials/creative-coding/youtube-and-vimeo-video-gallery-with-wordpress/”). Everything works fine I just wanted to add a Custom meta box that has a drop down to display a specific video as “Featured”.

    I also found [this post on stack exchange](http://wordpress.stackexchange.com/questions/9968/how-do-i-create-a-featured-post-within-a-custom-post-type “http://wordpress.stackexchange.com/questions/9968/how-do-i-create-a-featured-post-within-a-custom-post-type”). But I am not a PHP type of person, so I am clueless on what to do.

    Can some one please help me add the Featured Post meta box along with a piece of code to display the selected video inside of a page template?

    I’d really appreciate all help!!

    # May 20, 2013 at 4:54 pm

    Anyone?

    # May 20, 2013 at 5:01 pm

    what the issue your having?
    can you show us you have done so far, and where your problem is occurring?

    because in your first sentence you say “I followed this tutorial. Everything works fine”!

    # May 20, 2013 at 5:15 pm

    @unasAquila

    (http://pastebin.com/qD6JF1BS “http://pastebin.com/qD6JF1BS”)

    [This is my Videos CPT.](http://pastebin.com/nTvsN6BE “http://pastebin.com/nTvsN6BE”)

    I’m not having an issue with what is set up now. I just want to implement a “Sticky Post” feature and be able to display a video on the homepage,but I have no idea how.

    # May 20, 2013 at 5:27 pm

    @unasAquila Not sure if this is needed but I am using a static home page.

    Here is the empty page template:

    < ?php /* Template name: Home */ ?>
    < ?php get_header(); ?>

    < ?php get_footer(); ?>

    # May 20, 2013 at 10:53 pm

    I edited my post. The link to the stack exchange was wrong.
    Please take a look if willing to help.

    # May 21, 2013 at 12:39 am

    I think you need someone with a little more wordpress knowledge to see your files, as it’s not really clear what you have done. For example, why have you created a template for home rather than just front-page.php? That points to maybe a few things not being set up correctly, so maybe it’s not a PHP issue but not quite knowing wordpress enough perhaps?

    # May 21, 2013 at 1:50 am

    @deeve007 that’s fine

    # May 21, 2013 at 4:44 pm

    @unasAquila By the way I also said “I just wanted to add a Custom meta box that has a drop down to display a specific video as “Featured”.” which pretty much explains what the point of my post was.

    # May 21, 2013 at 4:57 pm

    Maybe these Plugins could help [featured-post](http://wordpress.org/plugins/featured-post/) & [featured-video](http://wordpress.org/plugins/featured-video/) i have yet to dig into WordPress so apologies for the little help i can offer.

    # May 22, 2013 at 1:28 am

    > By the way I also said “I just wanted to add a Custom meta box that has a drop down to display a specific video as “Featured”.” which pretty much explains what the point of my post was.

    But you’ve posted template code which isn’t necessary, so it’s not really clear how you’ve set up your base site, hence my confusion at the moment. Would probably become clear when looking at the files, but not at the moment. Sorry.

    Maybe a link to the site, a zip file of the theme files…?

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".