Sauter la navigation

[Résolu] View in table with divi template from media

This support ticket is created Il y a 5 années et 8 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : ,

Ce sujet contient 13 réponses, a 2 voix.

Dernière mise à jour par Shane Il y a 5 années et 5 mois.

Assisté par: Shane.

Auteur
Publications
#1249497

I want to do a table based on media files, photos. And I want to design it in a divi template. The loop, this:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop">
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
<tr>
<td>
[wpv-post-body view_template="loop-item-in-froga2"]
</td>
[wpv-item index=other]
<td>
[wpv-post-body view_template="loop-item-in-froga2"]
</td>
[wpv-item index=4]
<td>
[wpv-post-body view_template="loop-item-in-froga2"]
</td>
</tr>
[wpv-item index=pad]
<td></td>
[wpv-item index=pad-last]
<td></td>
</tr>
</wpv-loop>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]

Well. I design it in divi content template. But in the front end it contains default the photo. And I would want to incorporate it only through the template. Can be done?

#1249505

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch. I see what you are trying to achieve however i'm not sure what you mean by this "But in the front end it contains default the photo"

Could you provide some clarity for me.

Thanks,
Shane

#1249523

Hello,
I want to say that without putting the photo in the template it appears by default.

and I would like to style it in the divi template.
Right now with that loop if I put the field to see the photo in the template, it appears twice.

Thanks.

#1249691

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hello,

Could you send me a link to the page so that I can the issue ?

Also please send me a screenshot of the template on the backend so that I can take a look at well ?

Thanks,
Shane

#1250655
template.png
front-end title+photo.png
Captura de pantalla 2019-05-27 a las 10.05.55.png

Good Morning,

sorry I am working on local server. I send you screenshots of the view ( the loop, i have wrote it you before), the divi template (I only have written [wpv-post-title]) and front-end (where the photo and the title appear).

what I mean is, if I do not call the photo in the template, why does it appear in the front-end?

#1251095

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Urko,

I see what you mean. You are only displaying the post title as you say.

Is the module with the title the only item in the divi template? Could you send me a screenshot of this as well ?

Failing that i'm not able to identify the issue from that I will need a copy of the site so that I can have a first hand look at the issue.

Thanks,
Shane

#1251157

Hi Shane,

I have reproduced it on a test server. lien caché .
The name of the view is "frogaDIVI" and the page where it is inserted "frogaDIVI".

As I said in the template I only have the name of the post but in the front end the photo appears.

#1251159

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Urko,

Could you send me the login url ?

#1251171

lien caché

#1251241

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Screenshot 2019-05-27 at 1.36.37 PM.png

Hi Urko,

I checked this url to log in but it does not work on my end. See screenshot

Without this i'm not able to login in and check the view for you.

Thanks,
Shane

#1251323

Hi Shane,
I do not know why you can not access.
In any case I made a copy of the site with the plugin "all-in-one-WP-migration" I pass the download link:
lien caché

here the view name is "froga2" and the page where the view is inserted "frogadivi".

in this case the template is empty but in the page where the view is inserted appears the photos. And I would like to add the photos in the template to give them a look.

Thanks

#1251325

sorry,
username: Gordegia and password: Egiagorde

#1251937

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Urko,

I was able to replicate the issue on a clean installation.

I've escalated this to our 2nd tier supporters so that it can be reported to our development team.

Thanks,
Shane

#1324629

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Urko,

Thank you for the continued patience.

There is a workaround that our development team added.

Could you add this custom code to your site and let me know if it resolved the issue.

add_action( 'init', 'my_prefix_init', 20 );
function my_prefix_init() {
    remove_filter( 'wpv_filter_wpv_the_content_suppressed', 'prepend_attachment', 10 );
}

Thanks,
Shane