Action

directory_before_post_content

Purpose

Helpful to display anything above every listing description. You can use it by having your function an echo output to the browser or to perform background tasks. Your functions should not return or take any parameters as it provides no parameters.

Folder Location

../wp-content/plugins/Tevolution-Directory/templates/

Used in files

taxonomy-listingcategory.php, taxonomy-listingtags.php

Example

<?php

function directory_before_customfields_list (){

// display your extra custom fields or anything you want.

// example custom fields

Global $post;

echo get_post_meta($post->ID,’custom_field_html_vairable’,true);

}

add_action('directory_before_post_content','directory_before_customfields_list');

?>