• bt-chadski

    (@bt-chadski)


    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?!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Flashpaper

    (@flashpaper)

    I cannot get anything to display on a standard page.

    DeannaS

    (@deannas)

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

    Flashpaper

    (@flashpaper)

    Ah, no I did not! Thanks a million!

    Thread Starter bt-chadski

    (@bt-chadski)

    Where do we do that?

    DeannaS

    (@deannas)

    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

    seanjacob

    (@seanjacob)

    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');

    DeannaS

    (@deannas)

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

    [cft key=Plan]

    seanjacob

    (@seanjacob)

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

    seanjacob

    (@seanjacob)

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

    seanjacob

    (@seanjacob)

    DeannaS

    (@deannas)

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Custom Field Template] Am I missing something?’ is closed to new replies.