WordPress.org

Support

Support » Plugins and Hacks » [Plugin: More Fields] Why doesn't this plugin have documentation?

[Plugin: More Fields] Why doesn't this plugin have documentation?

  • I have search high and low for some basic documentation. I’m not talking in-depth, just something simple to show you how to get off the ground displaying your plugins.

    Do the authors of the plugin think we’re supposed to figure out the template tags ourselves? How…?

    http://wordpress.org/extend/plugins/more-fields/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Danno040

    @danno040

    Not a bad question.

    I think they just expected you to notice that it puts all of its data as post meta info, and you would just use the normal get_post_meta functions to retrive them.

    If you want to throw a quick example together, I’d be happy to add it to the fork on GitHub.

    Yes– I eventually figured it out. I can throw up a quick Gist in a sec…

    Danno040

    @danno040

    Great. I’m in the middle of something, but I will work it into the Read Me very soon.

    alexandruv

    @alexandruv

    Hello everyone,
    I also could use some help using this plugin as I am not a very good php programmer.

    Following the link posted by @ankurt I assume that if I create a Field called say “Technical specs” I can then add this to my code:

    echo get_post_meta(get_the_ID(), ‘technical_specs’, 1 ); – and it will work?

    Any help appreciated,
    Alex

    Danno040

    @danno040

    One thing to remember: you have to make sure the “Custom Field Key” is technical_specs. Otherwise, it won’t work.

    Also, ankurts snippet works only if you are inside “The Loop”.

    @alexandruv

    Yes.

    The “1” means return a string as opposed to an array.

    http://codex.wordpress.org/Function_Reference/get_post_meta

    EDIT: yes, only works inside loop because of get_the_ID(), but you can swap this with $post->ID or use any ID you want.

    alexandruv

    @alexandruv

    Awesome!
    Thanks guys!

    Danno040

    @danno040

    I have added a “Working with More Fields in templates” to the readme.

    As always, any additions you’d like to make would be welcome.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: More Fields] Why doesn't this plugin have documentation?’ is closed to new replies.