Show profile description in bubble map

This topic contains 4 replies, has 2 voices, and was last updated by  thaixl 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #211004

    thaixl
    Expired Member
    Post count: 35

    Hi,

    I managed to add email reading this post : https://wpgeodirectory.com/support/topic/show-email-address-in-map-bubble/

    I would like to add the profile description using the following code, but I don’t manage to create the $post variable in post_functions.php

    Thanks,
    Marc.

    
    
    $show_listing_excerpt = apply_filters('geodir_show_listing_post_excerpt', true, 'listview', $post);
    if ($show_listing_excerpt) {
        if ( isset( $character_count ) && ( $character_count || $character_count == '0' ) ) {
            $content_out = geodir_max_excerpt( $character_count );
        } else {
            $content_out = get_the_excerpt();
        }
        if ( ! empty( $content_out ) ) {
            echo '<span class="geodir_profile">' . $content_out . '</span>';
        }
    }
    #211364

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please provide the entire code used to cutomize the bubble and how you included this and we will check what is not working.

    Let us know,

    Thanks

    #211419

    thaixl
    Expired Member
    Post count: 35

    Attached the post_function.php file (rename .txt to .php).
    It cannot work because I don’t know how to create the $post variable.
    Search for $post = ??? in the file.
    Thanks a lot !

    #212278

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you should never modify core files. (you’ll lose changes after every update)

    There is a hook that allows to modify the html of the map infowindow: https://wpgeodirectory.com/support/topic/bubble-image/#post-200946

    You can find examples searching the hook name: https://wpgeodirectory.com/support/search/?bbp_search=geodir_custom_infowindow_html

    Let us know if that helped.

    Thanks

    #214867

    thaixl
    Expired Member
    Post count: 35

    Great! Thanks Paolo.

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