Custom Fields not working on frontend


I am adding new custom fields in the site using Custompress. All custom fields I created did display in the admin "Add New Listing" since I'm also using the Directory plugin for listing. The problem is when I go to the "Add Listing" page in the frontend, all custom fields I created aren't displaying but I can see in the code something like this "
global $post, $CustomPress_Content_Types, $CustomPress_Core;

if ( isset( $CustomPress_Content_Types ) ): ?>
<div class="editfield">
$post->post_type = 'directory_listing';
$post->ID = $listing_data['ID'];
$CustomPress_Content_Types->display_custom_fields();//( 'display-custom-fields', array( 'type' => 'local' ) );
<?php endif; ?>
What seems to be the problem to get it fixed?

thank you..

  • PC
    • WPMU DEV Initiate

    Hello ils,

    Greetings and thanks for posting on the forums.

    I found a related post in which Kim has made a suggestion regarding the same, you may wanna give it a read here

    Also, Have you installed Custom Press and directory plugin separately ? I mean to say that along with the installation of the Directory plugin, custompress is automatically installed.

    Please advise !


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.