• Resolved gjv

    (@garethjohnvaughan)


    I’m using the PHP code below to get my field values:

    $cafeURL = get_cfc_field(‘cafe_arguments’, ‘cafeurl’ );

    but how do I get the title of the custom field? I called the title ‘My Cafe Website’ for users to see what to type in the box within WordPress editor and I don’t want to have to type it again in the code when I should be able to grab the title from the custom field data?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @garethjohnvaughan

    Thanks for reaching out.

    There is no direct support for the title.

    Theoretically you can query the option with all the defined custom fields and get it from there, but the simplest way is to just write it again.

    With best of wishes,
    Gabriel

    Thread Starter gjv

    (@garethjohnvaughan)

    Thanks, I’ll do that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get Custom Field ‘Title’’ is closed to new replies.