Skip Navigation

[Resolved] Allow passing slug to render_view_template()

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

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Clifford 6 years, 7 months ago.

Assisted by: Beda.

Author
Posts
#906310

Re: https://toolset.com/documentation/programmer-reference/views-api/#render_view_template

I see

render_view()

allows passing a slug, but

render_view_template()

does not.

I'd like to request

render_view_template( 'header-branding' )

work instead of having to do

render_view_template( 144 )

Thank you.

#906772

OK, I have filed this request.

Thanks for the tip, I think it makes sense, although the ID is more precise.

#906825

Thanks for filing this request.