WordPress.org

Ready to get started?Download WordPress

Forums

Custom Fields Plugin Help (3 posts)

  1. soph
    Member
    Posted 9 years ago #

    Hey :)
    I experience difficulties getting the Custom Fields Plugin by Scott reilly ( http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/ ) to work.
    I already uploaded the file to the plugins folder and activated it and now I'm stuck as what to do further to display it on the blog.
    What exactly do I have to put inside "the loop" and where can I define my Custom Fields? In the .php file? It would be a great help if somebody could give me a short example how to display the "mood"? Like what comes into the loop, what to change inside the .php file and where to write that mood so that it gets finally displayed on the page?
    I'd be very grateful! Thx in advance :)
    P.S. I did search the forums, and read the tutorials at the Wiki and at coffe2code.

  2. serendipity
    Member
    Posted 9 years ago #

    Scott explains is as good as I could (see "Tips & Examples").
    In your place, I'd just add a custom field ("mood", "reading" ... whatever you want) to a test post. The right place is at the bottom of your edit/advanced edit screen, for example field name "mood" value "confused" :).
    Then try using the function the way Scott suggests it, ie put <?php echo c2c_get_custom('mood'); ?> at the end of the div called "storycontent" in your index.php. Then play with the parameters (before/after etc.).

  3. soph
    Member
    Posted 9 years ago #

    Thank you, Serendipty :) I had overlooked the Custom Fields screen at the bottom of the Edit page ;) It's working fine now, I'll figure the subtleties out myself. Thx again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.