Skip Navigation

[Resolved] System doesn't show content

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by luisP-6 7 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#467361
Captura de pantalla 2016-12-14 a las 10.31.31.png
Captura de pantalla 2016-12-14 a las 10.31.11.png

I am trying to: Show archieves page, or a post created with Types, but it only shows "title" field.

I visited this URL: hidden link

I expected to see: Title, image, data field, number field, WISYWYG field, etc

Instead, I got: only title field.

#467364

By the way, I've tried to desactivate all plugins, but the problem isn't resolved.

Thank you so much,
Luis

#467374

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Luis

Looking at your screenshots I can see that you have assigned a group of custom fields to your 'espectacle' custom post type, and when edit an espectacle post you have entered values for those custom fields.

What I don't see is any sign of how you are trying to output the values from the custom fields.

From the URL you shared it appears that this is for a single espectacle post ("JANSKY presenta PARELLA, Òpera Minòrica").

If you want to output the content of the custom fields you need to insert them via the relevant shortcodes which you can do using the Fields and Views button when editing the Content Template.

If you haven't already you need to create a Content Template for your single espectacle posts, and then in the editor design the content how you want it to appear.

Please see this page of documentation which describes what is involved: https://toolset.com/documentation/user-guides/view-templates/

#467377
Captura de pantalla 2016-12-14 a las 11.29.00.png
Captura de pantalla 2016-12-14 a las 11.28.32.png
Captura de pantalla 2016-12-14 a las 11.28.14.png

Hi Nigel,

Yes, I've created Content Template. Find attached 3 more screenshots, but single espectacle post doesn't show the information, and Archieve page neither.

Thank you for your answer,
Best regards

#467383

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Luis

OK, thanks for the clarification.

I see that you are using Visual Composer. That shouldn't be a problem, but can we test this without VC?

(If you don't want to lose what you created with VC you can create a new Content Template for testing and assign it to your espectacle posts, and later revert back to your original template.)

Use HTML rather than Visual Composer when editing the content template and insert several of your fields via the Fields and Views button for testing.

Then view an espectacle post on the front end to see whether they are being output.

If not, on the edit page for the post make sure the content template is assigned.

Let me know what you find so I can consider what's next.

#467441
Captura de pantalla 2016-12-14 a las 14.15.25.png

Hi Nigel,

I've tried it without VC, and the problem is still there, and the content template is asigned too 🙁

Thank you

#467515

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Luis

I think it would help if I could take a look for myself if that's okay.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes other than, possibly, to temporarily add a backup plugin to take a snapshot of the site.

#467764

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Luis

Switching to a default theme (e.g. twentyseventeen) resolved the problem.

It appears that you theme does not use the standard the_content() function.

In Toolset > Settings > Front-end Content there is a section "Theme support for Content Templates" where you can enter the name of the function your theme uses instead of the_content().

I used the debug mode you find there to identify the name of the function. Several were listed, but I tried the first (us_load_template) and it appears to work in testing.

You will need to work on styling etc., but the content now appears on the screen.

#467765

Thank you so much for your help, Nigel.

Now it works fine! 🙂

Best regards,
Luis

#467842

Hi again Nigel,

Now the single post is viewing correctly, but I have the same problem on archieve page, or with views.

How could I repair it?

Thank you so much,
Luis

#467852

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Luis

I checked the archive for espectacles that you created and the Loop Output section was empty, so nothing was being output.

I added the content template you created for your single espectacle posts and reloaded the archive page and it worked. I'm not sure which view you are referring to but I suspect the issue is the same.

You may want to create a different content template for the archive view to only show a summary, for example, rather than the full espectacle post contents, in which case you would replace the wpv-post-body shortcode in the Loop Output section of the archive with your new template.

#467921

Oh, sorry for that, Nigel! Understood 🙂

Now is working fine. Thank you so much!

The forum ‘Types Community Support’ is closed to new topics and replies.