• Resolved mflc

    (@mflc)


    Is there a way to display (in the single listing and all listings pages) two or more fields concatenated together? The idea is that in certain cases it may be desirable to not display each field on on it’s own line with it’s own icon, but rather two or more fields on the same line, perhaps separated by a comma.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hi @mflc

    Thank you for asking. It is possible to achieve this feature by using custom coding and template overriding. You can learn more from here – Template Override (directorist.com)

    You can override a single listing template and achieve this feature. If you are not comfortable with coding, you can contact to our support channel – https://prnt.sc/cKSW-z2RTXrs. We will try to help you with this.

    Regards

    Thread Starter mflc

    (@mflc)

    Thank you for the response. I looked into this a bit. it looks like the location where I modify code to get two fields to concatenate are the functions render_loop_fields() or render_card_field() in class Directorist_Listings, in /includes/model/Listings.php, but that is core to the plugin and not an overridable template (unless I am missing something). Overridable templates like loop-list-nothumb.php seem to simply call render_loop_fields() and so don’t really allow a way to make any changes at the granular level of individual fields.

    Am I missing something and can I customize class Directorist_Listings somehow like a template (so that I don’t have to worry about any changes I make being blown away with the next plugin update)?

    Thanks in advance!

    Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hi @mflc

    You need to override the templates here –

    • wp-content/plugins/directorist/templates/archive/loop-grid.php
    • wp-content/plugins/directorist/templates/archive/loop-list.php

    Please contact to our support channel here – https://prnt.sc/cKSW-z2RTXrs

    We will try to help you with the code.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.