Skip Navigation

[Resolved] "Views" are not parsing the theme's shortcode when placed in a content template

This support ticket is created 4 years, 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 4 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1877307
Screen Shot 2020-12-15 at 12.37.35 PM.png

I am trying to fix an error on our website where a view shortcode is no longer displaying the content as it once properly did. My best guess is this happened when I updated WordPress recently; however, I thought I had checked everything at that time. It seems like this is a new problem.

I am following documentation on Toolset for "Views."

There are a few places on our website where a "view" is not displaying the expected content, but the one I attached at veritascolumbus.com/sermons in the section "Last Sunday's Sermons" is probably the simplest place to troubleshoot because the setup is simply that I have a content template calling three views, each with their own content template.

veritascolumbus.com

#1877733

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I will require temporary access details in order to see whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1878427

I have made a backup of the site, but before I go through all the work of creating a test environment, I may be on to something. I'm now seeing that specifically what isn't rendering is the [wpv-post-url] parameter. My theme has a button shortcode where you provide the link as a parameter, and so that looks like this:

[button link="[wpv-post-url]" color="alternative-3" size="small" target="_blank" icon="share-alt" lightbox="false"]View Sermon[/button]

And so if I drop a link in place of [wpv-post-url], it works. I'll continue to read up on [wpv-post-url], workarounds, etc... and see where that gets me before creating a whole test environment. Thanks.

#1878537

Do you know if there is a way to revert to an older version of Toolset? I think this issue came up when I last updated the Toolset plugins.

#1878553

Just for further insight:
- I downgraded from wordpress 5.6 to 5.5.3 and the issue is still there, so I don't think this is because of wordpress files.
- I noticed that this is happening wherever a content template is calling a variable like [wpv-post-title] within a theme shortcode. For instance, this "member name" theme shortcode works just fine when I replace the [wpv-post-title] with an actual value, but in the content template, this is no longer handling this complexity.

[member name="[wpv-post-title]" role="[types field='leadership-job-title'][/types]" img="[types field='leadership-picture' output='raw'][/types]"]

#1878923

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The thing is that, we do not know how the shortcode that you are using which belongs to your theme is constructed. We do not know how your theme shortcode handles the nested shortcode assigned to its associated shortcoce attributes. As they know how button and member shortcodes are constructed.

I suggest its better idea to contact your theme author and check with them as we do not see such report and our shortcode output the value as expected.

#1883969

I have contacted my theme author and will wait to see what their support team says. I've noticed that everything with their theme has been working elsewhere, it's just a problem where it interacts with Toolset. Can I provide you login information to take a look on the backside?

#1884661

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes sure. Can you please share problem URL where I can see the issue as well as access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1894665

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Unfortunately - the wp-admin access details you shared is not working at this end.

Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#1895801

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for access details and its working this time 🙂

I see you are using the following view:
=> hidden link

And the view's loop having the following code added to the content template:
- Loop - Service Opportunity

[one_third]
[teaser img='[wpv-post-featured-image size="thumbnail" output="url"]']
<h3>[wpv-post-title]</h3>
[gap height="20"]
[mini-icon icon="calendar"] [types field='service-date-time'][/types]<br>
[mini-icon icon="map-marker"] [wpv-post-taxonomy type="neighborhood" format="name"]<br>
[button link="<em><u>hidden link</u></em>" color="alternative-3" size="small"]More[/button]
[/teaser]
[/one_third]

- Loop - Service Opportunity Last Item

[one_third_last]
[teaser img="[wpv-post-featured-image size='thumbnail' output='url']"]
<h3>[wpv-post-title]</h3>
[gap height="20"]
[mini-icon icon="calendar"] [types field='service-date-time'][/types]<br>
[mini-icon icon="map-marker"] [wpv-post-taxonomy type="neighborhood" format="name"]<br>
[button link="[wpv-post-url]" color="alternative-3" size="small"]More[/button]
[/teaser]
[/one_third_last]

The thing is that the nested shortocdes you are using is not belongs to Toolset, hence, as per our support policy we do not debut third-party theme/plugin shortcodes. I checked all the Tooolset shortcodes outputs the content as expected.

You must check with your shortcode author plugin/theme.

Even, I wonder why you are using such shortcode as view's offers the bootstrap grid and you may able to build same output using it.
=> https://toolset.com/documentation/legacy-features/views-plugin/view-layouts-101/#bootstrap