custom field output

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #48702

    Sina Riegel
    Free User
    Post count: 2

    hi i searched in the forum and found:

    echo $telefon = geodir_get_post_meta($post,’geodir_contact’,true);

    to output the field value in frontend

    but in frontend is nothing shown

    what is the correct code?

    #48715

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    
    
    $telefon = geodir_get_post_meta($post,’geodir_contact’,true);
    echo $telefon 

    Beut where are you trying to add this? This is php and can only be added in php files.

    Let us know,

    Thanks

    #60831

    reservemypet
    Expired Member
    Post count: 10

    $post will not actually work, but this will work fine:

    <?
    $postid=get_the_ID();
    $telefon = geodir_get_post_meta($postid,’geodir_contact’,true);
    echo wpautop($telefon);
    ?>

    wpautop($telefon) part will output field with break lines.

    Thanks for answer anyway, this is only answer on searches that is much helpful., so hope this will help others who searching for solution.

    #60898

    Paolo
    Site Admin
    Post count: 31206

    Thanks for sharing. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount