Accessing GD Post details programmatically

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #480988

    Evan Reitmeyer
    Expired Member
    Post count: 11

    Hello!

    In V1, it was possible to access the fields of the GD posts programmatically by doing something like the following:

    
    echo 'geodir_facebook . '"><i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i>' ;
    

    For a field created as “facebook”

    In V2, I see the design is more shortcode oriented:
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/

    However, is it still possible to access the fields programmatically on the listing and detail pages to fully customize the HTML? Can you recommend how to customize the HTML on (specifically in Supreme Directory theme):

    1- The listing results pages
    2- The result detail pages

    Thank you.

    #480990

    Alex Rollin
    Moderator
    Post count: 27815

    You can still do that, and you can also echo a shortcode. In V2 you don’t need the geodir_ prefix any more.

    Instructions for customizing plugin templates are here:
    https://wpgeodirectory.com/docs-v2/faq/customizing/

    We don’t recommend customizing Supreme because it is a child theme, unless you plan to use only code snippets (the child theme will get updates that overwrite changes). You can always change the name, though, and not update it.

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