Meta Key

This topic contains 5 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 12 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #425124

    sonyliston
    Expired Member
    Post count: 58

    Hello,

    I’m looking for a list of the keys for the standard informations (address, category, phone, facebook, twitter, web, etc) to use it with “geodir_get_post_meta” function. Where can I find it? (I checked on the directory custom fields, but the address only appears as “post” and doesn’t work)

    #425175

    Kor
    Moderator
    Post count: 16516

    Hi Sunder,

    Could you tell us a little bit more about what are you trying to achieve there?

    Thanks!

    #425260

    sonyliston
    Expired Member
    Post count: 58

    I’m customizing the profile tab using snippets following in a sort of way this topic “https://wpgeodirectory.com/support/topic/customizing-the-profile-tab-of-the-details-page/”

    into this design (I’ve changed the profile tab name to latest news and is in the last position, although I’ll change this to its default I think):
    https://www.ebeautyplanet.com/professionals/doctor/russell-j-bartels-md/#post_profile.

    So I want the address appear like “name” “practice” “profession” (There is no need to have all the address fields separated, with the complete address is fine).

    This is the code where the key is going to be:
    <?php echo geodir_get_post_meta($post->ID, ‘HERE_GOES_THE_KEY’, true ); ?>

    #425265

    Alex Rollin
    Moderator
    Post count: 27815

    The value you are looking for the ‘HTML Variable’ value in the custom field settings prefixed with “geodir_”

    #425268

    sonyliston
    Expired Member
    Post count: 58

    Yes, I’ve already tried geodir_post, that is what it shows as the key (the field that you name “Field Key” doesn’t exist, it only shows “HTML Variable Name”, that is the same, because all the other fields I’ve used that and works).

    I tried also geodir_address but it doesn’t work.

    #425400

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I apologize, I was looking at V2 for that screenshot.

    As far as I know it the HTML Variable and it is indeed

    geodir_post

    that are looking for.

    You can post your code here so the developers can take a look.

    You can also take a look here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

Viewing 6 posts - 1 through 6 (of 6 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