Grow your CSS skills. Land your dream job.

WordPress Custom Fields & Image URLs

  • # September 29, 2009 at 6:19 am

    Alright! Here’s what I am trying to do…

    I am working on a WordPress site based on game reviews. The friend I am doing the site for requested the option to add rating stars to represent their opinion of the game. What I did was create 5 png images that could be included in the post for whichever rating they wanted (3-star.png ect.) That currently works fine if they put in the entire url of the image. I want this to be a bit more simple so I was wondering if there is a way that I could do something like…

    Code:

    < ?php $postimageurl = get_post_meta($post->ID, ‘rating’, true); if ($postimageurl) { ?>

    # September 29, 2009 at 6:58 am

    Check out Star Rating for Reviews plug-in for WordPress. Install and activate the plugin then all you need to do is add

    Code:
    [Rating:3.5]

    to your post to get a 5-star rating appear.

    # September 29, 2009 at 7:02 am

    Cool! Thanks, davesgonebananas! :) I tried looking for a plugin that wasn’t for public rating and had no luck. I’ll give this a shot.

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

You must be logged in to reply to this topic.

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