Apply to gd_place only

This topic contains 11 replies, has 3 voices, and was last updated by  Felicia Felicia 5 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #439905

    Felicia Felicia
    Buyer
    Post count: 140

    Hi there!

    How do I apply this php file to gd_place listings only?

    THanks!

    #439906

    Felicia Felicia
    Buyer
    Post count: 140
    This reply has been marked as private.
    #439909

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can copy/paste the snippet you are trying to use. Be sure to use the code formatting button here in the editor.

    If you are looking for information on how to customize templates, that is here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    If you are looking for hands on help with a customization, please contact a GD Expert here: http://geodirectoryexperts.com

    #439914

    Felicia Felicia
    Buyer
    Post count: 140
    This reply has been marked as private.
    #439915

    Alex Rollin
    Moderator
    Post count: 27815

    Can you please clarify how we can help?

    #439920

    Felicia Felicia
    Buyer
    Post count: 140

    I would like to apply this only to gd_place, not my cpt. Currently, it’s being applied to all post types.

    #439929

    Alex Rollin
    Moderator
    Post count: 27815

    What specifically are you looking to change about how the CPT looks or behaves?

    #439948

    Felicia Felicia
    Buyer
    Post count: 140
    This reply has been marked as private.
    #439968

    Alex Rollin
    Moderator
    Post count: 27815

    OK, thank you for the clarification.

    This would be a custoization, and outside of what we can help with in support, but let me see if the developers can come up with a quick fix.

    #439973

    Felicia Felicia
    Buyer
    Post count: 140

    Sure! Do let me know thanks:)

    #440040

    Paolo
    Site Admin
    Post count: 31206

    who modified that file for you Felicia?

    You should ask him/her to modify it using a conditional tag like this within that file:

    
    
    if ( $post_type == 'gd_place' ) {// code to show the logo}
    
    else {//normal code to show featured image};

    You cannot use a different file for each CPT.

    Thanks

    #440129

    Felicia Felicia
    Buyer
    Post count: 140

    Hi Paolo,

    Thanks, it’s working for me.

    It was my previous developer, who isn’t working for us now.

    Thanks!

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

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

Open Support Ticket