Custom Field for Main listing on Franchise

This topic contains 16 replies, has 4 voices, and was last updated by  Giri 8 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #153976

    scamp
    Buyer
    Post count: 38

    Hi

    I am using the following:

    add_action(‘geodir_after_description_on_listing_detail’, ‘my_geodir_tab_add_certs’, 90);

    To add some custom fields (set by Admin) to display on the profile tab, how can I only display the custom fields set for the main listing on all Franchise listings….

    Do I use geodir_get_post_meta and if so how do I get the parent Franchise ID when I am in a Franchise…

    so normally I would do something lie:

    function my_geodir_tab_add_certs() {

    $myCustomField = get_post_meta( get_the_ID(), ‘myCustomField’, true );
    echo $myCustomField;
    }

    thanks

    #154589

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #155242

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #161096

    DR
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #161535

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #161794

    scamp
    Buyer
    Post count: 38

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #162165

    DR
    Expired Member
    Post count: 78

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #162171

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #162220

    DR
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #162639

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #162791

    DR
    Expired Member
    Post count: 78

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #163348

    Giri
    Expired Member
    Post count: 3155

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #163405

    DR
    Expired Member
    Post count: 78

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #163672

    Giri
    Expired Member
    Post count: 3155

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #163676

    Giri
    Expired Member
    Post count: 3155

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket