Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created September 7, 2012 12:44
Show Gist options
  • Select an option

  • Save objectivehtml/3665931 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/3665931 to your computer and use it in GitHub Desktop.
$channel_fields = $this->EE->channel_data->get_channel_fields($channel_id = 1)->result();
$channel_fields = $this->EE->channel_data->utility->reindex($channel_fields, 'field_name');
$channel_fields['your_field_name']->field_id; // Would out put the field's id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment