Functions that need to be used in WP_Query loop. Functions file is includes/loop-functions.php
Estatik entities equals Property, Agent, Agency.
Function | Description | Arguments |
---|---|---|
es_get_the_property | Return queried Es_Property object. | $post = 0 |
es_get_the_agent | Return queried Es_Agent_Post object. | $post = 0 |
es_get_the_field | Return property non formatted field value. | $field = ‘{entity field machine name}’ $post_id = 0 |
es_the_field | Display estatik entity non formatted field value. | $field = ‘{entity field machine name}’ $before = ‘’ $after = ‘’ |
es_get_the_address | Return property address field. | $post_id = 0 |
es_the_address | Display property address field. | $before = ‘’ $after = ‘’ |
es_the_title | Display formatted property title with title_mode estatik setting. | $before = ‘’ $after = ‘’ |
es_the_price | Display formatted property price. | $before = ‘’ $after = ‘’ |
es_get_the_featured_image_url | Return property featured image URL. | $size = ‘{image size}’ $post = 0 |
es_get_the_formatted_field | Return property formatted field value. | $field = ‘{entity field machine name}’ $post_id = 0 |
es_the_formatted_field | Display property formatted field value. | $field = ‘{entity field machine name}’ $before = ‘’ $after = ‘’ |
es_get_the_content | Return property Description field value (Post content). Use this function instead of get_the_content and the_content. |
$post = 0 |
es_get_the_term_list | Return formatted terms list. | $post_id $taxonomy $before = '' $sep = '' $after = '' |
es_get_the_permalink | Return formatted estatik entity single page url. | $post = 0 |
es_get_the_agent_avatar_url | Return agent avatar url. | $post = 0 $size = ‘{image size}’ |
es_get_the_agency_avatar_url | Return agency avatar url. | $post = 0 $size = ‘{image size}’ |
es_get_the_agent_avatar | Return agent avatar html. | $post = 0 $size = ‘{image size}’ |
es_get_the_agency_avatar | Return agency avatar html. | $post = 0 $size = ‘{image size}’ |