Display social icons below title for premium members

This topic contains 4 replies, has 3 voices, and was last updated by  sueboothby 8 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #54471

    sueboothby
    Expired Member
    Post count: 22

    What is the condition to display a custom field if it has been selected to show in a price package? I want to show the facebook/twitter/website icons below the title or premium member, but not show for free members.

    #54524

    Paolo
    Site Admin
    Post count: 31206

    Hi,
    You can use:

    
    
    geodir_get_post_meta($post_id, 'package_id')
    

    and you can use that for any post meta.

    Quick example:

    if(geodir_get_post_meta($post_id, 'package_id')=='1'){echo "price package 2";}

    Let us know how you went.

    Thanks

    #54587

    sueboothby
    Expired Member
    Post count: 22

    That works. Thank you.

    #54588

    Guust
    Moderator
    Post count: 29970

    You’re welcome

    #54589

    sueboothby
    Expired Member
    Post count: 22

    On more testing, it didn’t work; but this works:
    if ($post->package_id != 1) {}

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

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

Open Support Ticket