I have created a view to list all the 'coupon' custom types. But in the column 'trade' I don't get the trade assigned by relation, and I don't know what I'm doing wrong.
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%">
<thead>
<tr>
<th>[wpv-heading name="types-field-nombre_campana"]Nombre de la campaña[/wpv-heading]</th>
<th>[wpv-heading name="types-field-referencia-del-bono"]Referencia del bono[/wpv-heading]</th>
<th>[wpv-heading name="types-field-fecha-de-creacion-del-bono"]Fecha de creación del bono[/wpv-heading]</th>
<th>[wpv-heading name="post-taxonomy"]Estados[/wpv-heading]</th>
<th>[wpv-heading name="types-field-logo"]Comprobante uso[/wpv-heading]</th>
<th>[wpv-heading name="post-taxonomy"]Comercios[/wpv-heading]</th>
</tr>
</thead>
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<tr>
[wpv-post-body view_template="loop-item-in-listado-bonos-administrador"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
I don't know why when I create the attach file field it loses the voucher reference. Also, the submission file should only appear when there are no attachments yet.
Based on what I see you're doing is that you've created a form to make a new post. What you need to do is to set the form here to edit the existing post. hidden link
So instead selecting "Add New Content" you will select "Edit Existing content".
Now in order to only show the form when the field is empty you will need to edit the view here. hidden link
Use the conditional button to setup a conditional for the image field to check if it is not empty and display the image and if it is empty you display the form.