Skip Navigation

[Resolved] Displaying content of a virtual page

This support ticket is created 7 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 7 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#542624

Hello,

A plugin I am using (WPMUDEV CoursePress Pro) makes use of virtual pages for some of the course pages. Because I am using Layouts, when I navigate to these virtual pages, Layouts is giving me the front-end message "This page doesn't have a template layout" ... "Create a new Layout for...".

Since these pages are virtual, when I click the big blue button, I get an error message "An unexpected error happened." My guess is that Layouts is looking for an actual page or post type, and since there is nothing to find, it is returning an error.

I don't know how I am supposed to display these pages at this point. Some assistance would be greatly appreciated.

I installed a fresh test site, so I could see how Twenty Sixteen Theme handled the virtual pages. When I go to these virtual pages on my test site, Twenty Sixteen just displays what it is suppoed to.

Please let me know if you have any ideas.

Thanks!

#542727
Screen Shot 2017-06-28 at 5.23.38 PM.png

Hi, in Toolset > Settings > Layouts, there's a setting that lets you choose what to display when no Layout is found. I'm curious if this will work for you, since your plugin is doing some custom template work on-the-fly. Have you tried selecting an existing Layout as a fallback here? Is it even an enabled option for you?

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.