Keyword

Extra Field doesn't include the field name.

  • John Pitchers
  • John Pitchers's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago - 11 years 8 months ago #108943 by John Pitchers
Extra Field doesn't include the field name. was created by John Pitchers
In my templates, shouldn't I be able to retrieve my extra field by name? Using print_r the extra_fields only contains the id and value. Is this normal?
[extra_fields] => [{"id":"5","value":"test1"},{"id":"6","value":"test2"},{"id":"7","value":"test3"}]

I've seen many code examples on the forum and most use the name of the extra field not the id.

I can work with the id, it just seems clunky referring to your fields by id when there is a perfectly good name that would make the code more readable.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago - 11 years 8 months ago #108944 by chilly_bang
Replied by chilly_bang on topic Re: Extra Field doesn't include the field name.
Name
Log in  or Create an account to join the conversation.