WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
Am I missing something? (12 posts)

  1. bt-chadski
    Member
    Posted 3 years ago #

    Hi,

    This may seem like a dumb question - but I can't seem to display the data typed into a custom post. If there an extra step to make that happen?!

  2. Flashpaper
    Member
    Posted 3 years ago #

    I cannot get anything to display on a standard page.

  3. DeannaS
    Member
    Posted 3 years ago #

    Did you add output = true to the template for the items you want to display?

  4. Flashpaper
    Member
    Posted 3 years ago #

    Ah, no I did not! Thanks a million!

  5. bt-chadski
    Member
    Posted 3 years ago #

    Where do we do that?

  6. DeannaS
    Member
    Posted 3 years ago #

    In the actual template code. So, in his example code it would be:

    [Plan]

    type = text

    size = 35

    label = Where are you going to go?

    output = true

  7. seanjacob
    Member
    Posted 3 years ago #

    I am new to this plugin, and use custom fields a lot.

    So with the example above how would I go about displaying the outputter text as there is no key to select a certain field.

    I would normally do this
    get_post_custom_values('custom-text');

  8. DeannaS
    Member
    Posted 3 years ago #

    The example that I posted? The "key" is "plan". So you would output it with shortcode like so:

    [cft key=Plan]

  9. seanjacob
    Member
    Posted 3 years ago #

    This doesn't work when putting it into the actually code php page.

  10. seanjacob
    Member
    Posted 3 years ago #

    I have tried finding a manual for the plugin, do you know of one?

  11. seanjacob
    Member
    Posted 3 years ago #

  12. DeannaS
    Member
    Posted 3 years ago #

    You don't put it into the actual code php page when you're using shortcodes - you have the users put it into your post content. If you want to do it via php code, then, yes, you'd use the get_custom_post_values('Plan') approach.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic