The MU forums have moved to

How To Pass On Custom Fields Output (6 posts)

  1. ljmyers
    Posted 14 years ago #

    How can I pass the custom fields output that I get on a post page on to a newly created php page that I have added into the theme's directory?


    I have used custom fields to create a recipe that is output into posts for various recipes . . .

    description, ingredient, directions and story - each of these with its own custom field.

    I have created a new php page in the theme's directory to forward these custom fields to. I want to be able to click on a link in the original post(recipe) page that will take me to this new php page and will output the same custom field variables for that same recipe as was output in the previous post page.

    Could anyone point me in the direction of a tutorial(s) that would help me accomplish this as I am not quite sure of what key words to use for searching other than custom fields?

    Also, any thought or ideas are of course welcomed.

    Thanks so much . . . Lana

  2. STDestiny
    Posted 14 years ago #

    Could anyone point me in the direction of a tutorial(s) that would help me...?

    Here ya go

  3. andrea_r
    Posted 14 years ago #

    Hmmm.. I'm wondering if the ultimate output you want might be better served through use of categories and tags. tags for ingredients, for example.

  4. ljmyers
    Posted 14 years ago #

    . . . and in the case that I might want to try the categories and tags idea, how would I go about it?

    I know enough about php to accomplish some editing, code snipets, etc. but I am somewhat new to wordpress and how it works. Although I have to say I haven't had too many issues arise that I couldn't wiggle my way out of.

  5. ljmyers
    Posted 14 years ago #

    . . . and STDestiny, thanks, I'll check that out.

  6. andrea_r
    Posted 14 years ago #

    Well, many template usually have the tags & category links already in the theme using template tags. Clicking on any of those links just automatically serves up pages with similar results.

    If you're not familiar with wordpress, go to, sign up for a blog. Make some test posts as if they were recipes, like suggested above, and see if by default it does what you want.

    As a quick-check, have a look at my personal bog here: (just pretend I tagged the recipes with thinks like "chicken" or "dessert")

    This was accomplished with no fancy coding, just standard templates files. They'll serve up the results for ya.

    Trying to save you some unnecessary work is all.

About this Topic

  • Started 14 years ago by ljmyers
  • Latest reply from andrea_r