• Resolved stew278

    (@stew278)


    I’m new to WordPress and am missing the second post field that MT had. Now, I understand that there are “keys” and “values” that I could use, but I’d like to have a field like “post” that I can add underneath “post” and could control the size of that field like I can with the current post field.

    The reason I am looking for this is because I am working on a recipe web site, designed for people with very little web publishing experience and/or knowledge. For that reason, I need to make it simple for them to edit/add entries. I have an “Ingredients” section, followed by a “Directions” section. I’ve envisioned these as being two fields so that they can add ingredients to one, directions to another field … and because the layout has the titles in a different font/color/and size than the body.

    Any help here would be greatly appreciated. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Once you setup a custom field, it will always be there for future posts. So, for example, if you setup a field called “Ingredients” on your first post, it will be there for your users. They’ll pick it from a list and then insert the “ingredients” or whatever in the “Value” box and click “Add Custom Field”. The only time you have to fill anything in the Key field is when you first set it up – after that they can pick it from a drop down list.

    I did something similar (I think) to what you are wanting to do with books where I setup a “Catalog Card” using custom fields, a minor tweak to the Main Template and about 6 lines of code in the stylesheet – https://library.tom-hanna.org – You could certainly setup a “Recipe Card” file the same way.

    Thread Starter stew278

    (@stew278)

    Well … it’s a bit of a sloppy work-around, but I get it.

    It brings up another question though; is it possible to change the number of lines in a “value” field? Say, instead of “2” – I could make it “15” ???

    I didn’t know there was a limit. I’ve surely passed it. Here is more information

    Using_Custom_Fields

    Thread Starter stew278

    (@stew278)

    Is there a way to break these up, instead of listing all the custom fields (using “<?php the_meta(); ?>”)?

    I’d like to be able to control where they are placed within the page layout, for example, “Ingredients” above “Directions” and have styles applied to each one too.

    Check out Rhymed Code’s Custom Field GUI. It’s the easiest way to add extra fields to the post screen that I’ve found.

    To get the values use Scott’s Get Custom Fields plugin.

    Custom Field GUI has been updated to support type “textarea” with customizable number of rows and cols. If you upgrade, take care not to overwrite your conf.ini.

    Download Link

    Posted on behalf of rhymedcode.net

    A plugin upgrade in under an hour without even being asked. Cheers alphaoide!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Possible to add a second post field?’ is closed to new replies.