• Resolved Nisr

    (@nisr)


    hello,
    i have a custom post type “publications”, in which i add a group of custom fields such as “editor”, “year”, “issue” ..
    when i tried to pull the values of these custom fields using the
    <?php $fields = CFS()->get(); ?>
    nothing happened!!
    please, what i have to do to show the values of these fields in the custom post template?
    and if you can please give me a detailed instructions because I’m not a php expert.
    thanks a lot

    https://ww.wp.xz.cn/plugins/custom-field-suite/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nisr

    (@nisr)

    hi again
    after trying i found that

    <?php echo CFS()->get('first_name'); ?>

    works fine with all the fields except the hyperlinks!!
    any suggestion please?

    Plugin Author Matt Gibbs

    (@mgibbs189)

    The return values will depend on the field type.

    Some field types will return strings; others will return arrays. If you want your hyperlink field to output HTML, then change its Output Format option to HTML.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘problem with custom post type’ is closed to new replies.