Skip Navigation

[Resolved] Fields not showing on content type tempate

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 5 replies, has 2 voices.

Last updated by lesleeM 1 year, 4 months ago.

Assisted by: Nigel.

Author
Posts
#2619773

I have added a page template for our Ride Leader content type. I am displaying 3 fields on this template. But when I go to any of the individual Ride Leader pages, none of the fields are displaying. I haven't needed help with something this basic before, so I'm baffled as to what I could be doing wrong here. Sorry to have to bug with you something that's normally this easy.

You can see one of the Ride Leader pages here:

hidden link

And this is the code that is saved on the Ride Leader template:

<p><span class="tb-shortcode-placeholder"> </span><br><span id="tb-caret-placement-fix" class="tb-shortcode-placeholder"> </span>[types field='ride-contact-email'][/types]<br>[types field='ride-contact-phone-2'][/types]<br>[types field='ride-contact-website-2' target='_blank'][/types]</p>
#2619821

Oops, meant to say template.

#2619907

Nigel
Supporter

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

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

Hi there

I think one needs to be logged in to see the page.

In any case, it would likely be helpful to be able to access the back end and check your template to see how it is set up to understand what should be output.

Would that be possible? (A staging server would be preferable.)

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

Can you also confirm the url of where we can see the problem.

#2620187

Nigel
Supporter

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

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

Screenshot 2023-06-30 at 08.44.05.png

If you check the page source you'll see that the content is there on the screen, but it is hidden because you added a custom CSS rule to hide paragraphs within the Fields and Text block, it seems. See the screenshot.

#2620207

Hmmm, thanks for figuring that out. Now this leads me to the difficulty of figuring out why I did that. I'm sure it was to hide something else that needed to be hidden, but remembering what it was might be difficult. I definitely see exactly what you found. But I'm not sure what element on the site would have made me set up display: none; for a <p> tag within fields and text. As such I'm hesitant to just remove that styling because I'm not sure what I'd be revealing at this point. I just removed the <p> tags in this output and it is displaying fine now. So I think I'll just make sure to avoid using <p> tags on this kind of output for now. If I find that I absolutely need them, then I'll have to track down what element previously developed caused me to do that. It doesn't make sense why I'd do it on fields and text paragraphs without making it more specific than that. I usually would add something to the classes to make what I'm hiding more unique. Oh well, that's for me to figure out later. Thanks for the assist here and glad it was something simple where I was being stupid. All resolved here.

#2620209

My issue is resolved now. Thank you!