Skip Navigation

[Resolved] Field and View inside of field and view not generating now?

This support ticket is created 4 years, 3 months ago. 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)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by brianD-11 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1808799

Tell us what you are trying to do?

I am running a field and view [types field...] that is dependent on a different [types field...].

An example:

[types field='link' output='raw' item='[types field='post-id-1' output='raw'][/types]'][/types]

This used to work. For a very long time and still does on some content templates. Now, it does not. It returns jumbled HTML like: "‘][/types] ‘][/types] ‘][/types]"

See:

hidden link

Is there any documentation that you are following?

This has worked for me for a very long time. But, I resaved the custom post type and now it doesn't generate. It just gives me the [type/] in the HTML like my code is wrong. But it is not.

Is there a similar example that we can see?

hidden link

What is the link to your site?

batdigest.com

#1809085

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Brian,

Thank you for getting in touch.

Can you try adding it like this.


[types field='link' output='raw' item="[types field='post-id-1' output='raw'][/types]"][/types]


Please let me know if this works.
Thanks,
Shane

#1809115
Screenshot (13).png

Hi, thanks for this idea. But it did not solve the problem.

Here is some specific code.

<h2>[types field='year' item="[types field='1st-place-bat-review-id' output='raw'][/types]"][/types] [types field='brand' item="[types field='1st-place-bat-review-id' output='raw'][/types]"][/types] [types field='model-name' item="[types field='1st-place-bat-review-id' output='raw'][/types]"][/types]</h2>

If I just put [types field='1st-place-bat-review-id' output='raw'][/types] it will return the value (a number of the post ID). But, when I nest it inside of the other item= it does not work.

So strange, because, like I said, it has worked for a very long time for me. I'm wondering if something became corrupted? Maybe I need to reinstall?

#1809149

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Brian,

Are you using some form of pagebuilder to do this page?

If so can you add the same code to a sample page that is not using the page builder?

Or try it like this.


[types field='link' output='raw' item="[wpv-post-field name='wpcf-post-id-1']"][/types]

Thanks,
Shane

#1809165

I am editing this directly into a content template. Then, I am using that content template in my post to draw out the custom fields of that particular post. Is that a pagebuilder? I don't know.

Also, what is interesting. If I take your code snippet

[types field='link' output='raw' item="[types field='post-id-1' output='raw'][/types]"][/types]

and put it into a new content template, it works fine. But, it is when it is inside the content template I have been using for a while it spits out these errors. So, I'd have to retype all of that. Hmmmm.

Any other ideas?

Thanks.

#1809171

Hi. Sorry. I see now that, somehow, I had a syntax error in the above section of my content template. No idea when or how it got there, but somehow it did and started throwing off my entire code. It is fixed now. :/

#1809173

My issue is resolved now. Thank you!