I'm working on some stuff with custom thread fields and will be doing similar of displaying some values in the forum listings.
You can play around with your HTML & CSS for how you want the value to look but at it's simplest you'll want to modify your
thread_list_macros
template and then display your variables using
{$thread.custom_fields.NAME}
where
NAME
is the name of your custom thread field (so if you named it "price" it'd be
{$thread.custom_fields.price}
and so on).
To avoid any errant output output you'll also like want to wrap it inside of a conditional to only display if the custom thread field actually has a value. Using "price" as an example it'd be
<xf:if is="$thread.custom_fields.price">{$thread.custom_fields.price}</xf:if>
.
For the spot on your mockup with the red square, on an unmodified copy of the
thread_list_macros
template try this at line 165 (
again, assuming that "price" is a name of a custom thread value you have along with "location" and "condition"), just update the "myDivClass" and "mySpanClass" class names as needed.
Before...
Code:
</div>
</div>
<div class="structItem-cell structItem-cell--meta" title="{{ phrase('first_message_reaction_score:')|for_attr }} {$thread.first_post_reaction_score|number}">
After...
Code:
</div>
<div class="MyDivClass">
<ul class="structItem-parts">
<xf:if is="$thread.custom_fields.price">
<li class="mySpanClass">Date: {$thread.custom_fields.price}</li>
</xf:if>
<xf:if is="$thread.custom_fields.location">
<li class="mySpanClass">{$thread.custom_fields.location}</li>
</xf:if>
<xf:if is="$thread.custom_fields.condition">
<li class="mySpanClass">{$thread.custom_fields.condition}</li>
</xf:if>
</ul>
</div>
</div>
<div class="structItem-cell structItem-cell--meta" title="{{ phrase('first_message_reaction_score:')|for_attr }} {$thread.first_post_reaction_score|number}">