• Resolved marniesigal

    (@marniesigal)


    Hi.

    Firstly a BIG thanks for your great plugin.

    I am a wordpress DUMMY and I’m finding your plugin super user friendly and very customisable!

    I just wanted to know if it is possible to choose the fields displayed in the search grid? I would like each listing to have name, short description, phone, website, address

    Is it possible to easily choose what fields display?

Viewing 4 replies - 1 through 4 (of 4 total)
  • aazztech

    (@aazztech)

    Yes, its possible to easily choose what fields display going Directory Settings >> Listing Settings >> General Settings.

    Website and email fields are not available in the plugin. But, we used lots of hooks to ease the customization of the plugin. To display them, just copy the code below and paste it in your theme’s functions.php file.

    function atbdp_content_before_location(){
        $email = get_post_meta(get_the_ID(), '_email', true);
        $website = get_post_meta(get_the_ID(), '_website', true);
        printf('<li><p><span class="fa fa-envelope"></span><span class="atbd_info"><a target="_top" href="mailto:%s">%s</a></span></p></li>', $email, $email);
        printf('<li><p><span class="fa fa-globe"></span><a target="_blank" href="%s" class="atbd_info">%s</a></p></li>', $website, $website);
    }
    
    add_action('atbdp_listings_before_location', 'atbdp_content_before_location');
    Thread Starter marniesigal

    (@marniesigal)

    Hi and thanks for your always fast reply! I’m am amazed by the wonderful support!

    I really am a dummy with wordpress and I’m not very good at where to put code.

    Do i access the files via ftp or can this be done via the wp dashboard?

    And if via ftp….what would be the exact location of the functions.php file? Is it in the directorist directory? or in the twentyseventeen (theme i am using) directory?

    Thread Starter marniesigal

    (@marniesigal)

    Hi again! Amazingly I have managed to find the place to put the code and it WORKED!!! I totally couldn’t believe it. Thanks so much for your help.
    For anyone else wondering where to put the code, i used ftp to put it in the twenty seventeen theme file (this is the theme i am using)

    Now one new question along the same lines.

    I am not using the review feature – so i would like to remove the star icon that is appearing with each listing.

    Do i access the same theme code? And what do i do to remove the star?

    aazztech

    (@aazztech)

    Hello,
    Glad to know that you figured out.

    You are most welcome.

    Review Settings has an option to enable/disable review feature. Its supposed to disappeare the review and star icon if any one disable it, but star icon doesn’t. It will be fixed in the next update.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Choose Fields to Display in Listing’ is closed to new replies.