[Plugin: Verve Meta Boxes] newb need help displaying verve meta data in single post

Discussion in 'WordPress' started by The_Studio, Jul 26, 2010.

  1. #1
    as title suggests,
    need an example to how to display the verve meta info in the post,
    i am using it with custom post type UI,
    i have created a meta group called car_specs
    and have a series of images and spes such as colour, status, price, interior, etc,,,
    and was wondering how i would display the information in my post?

    thanks
     
    The_Studio, Jul 26, 2010 IP
  2. ashutoshkj

    ashutoshkj Guest

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have not used this pluging... Need to look at the plugin code. will get back to u...
     
    ashutoshkj, Jul 27, 2010 IP
  3. The_Studio

    The_Studio Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks would appreciate any help, as i can not get my head round, it
    in the docs, its says that verve meta boxes, use the get_custom_values(); and the_meta tags like normal custom fields but i can not get it to work
     
    The_Studio, Jul 27, 2010 IP
  4. The_Studio

    The_Studio Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    any more on this??
     
    The_Studio, Jul 29, 2010 IP
  5. one3rdnerd

    one3rdnerd Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Im also trying to use this plugin, and im using it with custom post types. Im trying to find out the same answer. I have had some success with using

    
    
    <?php print_r( get_post_custom_values('street_view') ); ?>   
    
    
    PHP:
    However its still not "quite" right. Il post on here when I find the definitive method. An excellent plugin but very crappy tutorials/usage info.
     
    one3rdnerd, Jul 29, 2010 IP
  6. The_Studio

    The_Studio Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    cheers for the reply,
    i have too had some success,
    using the same but echo with a true at the end
     
    The_Studio, Jul 29, 2010 IP
  7. one3rdnerd

    one3rdnerd Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Interesting you said that, I have also tried the true but to no avail.

    
    
    <?php print_r( $meta_values = get_post_meta($post->ID , 'map', true)); ?>
    
    
    PHP:
    How does yours differ from that? What wordpress theme are you building on? or starting from scratch? Im using Thesis.
     
    one3rdnerd, Jul 29, 2010 IP
  8. one3rdnerd

    one3rdnerd Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    So I now have it, worked a treat. One issue I had was with another plugin also.

    The following call in a template will bring through the value of your meta box...

    
    
    <?php echo get_post_meta($post->ID, 'bedrooms', true); ?>
    
    
    PHP:
    The following can be used when your adding shiortcods to a meta box and need them to execute, an example would be using nextgen gallery shortcodes....

    
    
    <?php echo do_shortcode(get_post_meta($post->ID, 'gallery', true)); ?>
    
    
    PHP:
    Hope that helps. Also, if your using $post->ID to call the particular pages ID then you need a global post call somewhere up top.

    My situation was more complicated because I am using custom post types and have created a new type called "Properties", I am also using various other plugins which had to be patched for it to work but in general the above rules should serve you well dude.
     
    one3rdnerd, Aug 1, 2010 IP
  9. The_Studio

    The_Studio Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thanks for the reply and information,
    i was too thinking of using Next gen gallery, so i would just call the shortcode for it?
     
    The_Studio, Aug 1, 2010 IP
  10. one3rdnerd

    one3rdnerd Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    that should do it, I used the same to make my google maps and google streetview work through it as well. Though my friend had to patch Google Maps Anywhere plugin to check the meta boxes as well as the_content so the right API is added to the sites <head> section. Otherwise it doesnt work.

    What is it your trying to do? Im using custom post types, are you using normal posts and/or pages? Il show you my site once complete.
     
    one3rdnerd, Aug 1, 2010 IP
  11. wp11.com

    wp11.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i use this
    <?php $values = get_post_custom_values("demo"); echo $values[0]; ?>
     
    wp11.com, Aug 3, 2010 IP
  12. one3rdnerd

    one3rdnerd Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thats interesting. I did look at that approach, what kind of value are you executing with that? Is there a way of using that and still using do_shortcode.

    I have mine working fine now so no issue there, my issue is that I cannot get the custom post type I am using with the meta boxes to take the template consistently.

    Which theme are you using? I use Thesis.
     
    one3rdnerd, Aug 3, 2010 IP