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!
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