Display data some where you want

Function acd_the_data

Display the content data.

  • $id (number) (Required) The data id.
  • $attr (array) (Optional) The attributes value.

Examples

Display data text

This example shows how to display the value of data with ID = 1.

Display data list

This example shows how to display the value of data with attribute type = ‘list’.

Display featured image (thumbnail) of data

This example shows how to display the value of data with attribute type = ‘list’.


Function acd_data_get_content

Returns the value of a content data.

  • $id (number|string) (Required) The data id or name.
  • $type (string) (Optional) sanitize field by type before display.

Examples

Get a text from the data

This example shows how to load the value of field ‘text_field’ from the data with ID = 1.

Get a value of (style|script) from the data

This example shows how to load the value of field ‘textarea_field’ from the data with name = ‘city’.


Development …