The individual VW Info pages, that are access via the /vw-info/ page, are controlled via a custom post type within Wordpress.
To access the VW Info pages within the CMS you need to go to “VW Info” on the left-hand menu after logging in to the CMS:
From here you can view a list of all the VW Info pages, as well as add new ones, in the same way that you can with Static Content.
From the main VW Info page in the CMS you can hover over an individual item and you will get the same kind of menu as with Static Content:
You can edit, delete, and view the item from there.
To add a new VW Info, either go to “VW Info” on the left-hand menu and click “Add New” in the sub-menu, or go to the main VW Info page and click the “Add New” button:
You can add a title to the VW Info, this should be the name of the vehicle, as you want it displayed on the front-end of the website, this will also be used to generate the URL for the page:
You can add a description of the VW Info within the main content editor, this is displayed in the header of the individual VW Info page:
You can add an image to the VW Info page, to be displayed either in the header of the VW Info page, or on the parent VW Info page’s sub-menu, by clicking “Set featured image” on the right-hand side:
You can then upload and/or select an image as per standard Wordpress practices.
NOTE – A header image should be a maximum of 1900px wide, and a child page’s sub-menu image should be a maximum of 260px wide.
NOTE – Images will be automatically used as header images on parent VW Info pages, and automatically used for sub-menu images on child VW Info page. For example, the “Beetle” page has a background image in the header that is set via the “Featured Image”, where as the “Engine Codes” child page has a featured image that is only used in the sub-menu on the “Beetle” page, and not in the header.
The VW Info pages work in a hierarchy, with child pages linked to their main parent page in order to build the sub-menus.
For example, the main VW Info page for Beetles has 4 child pages:
Those 4 child pages are then used on the front-end to build the sub-menu:
This is all done automatically, so you don’t need to manually control menus for each parent VW Info page, just add or remove child pages.
To set a VW Info page to be a child page, you need to select a parent page within “Page Attributes” on the right-hand side. You can also set an “Order” number to denote the order the pages should be displayed in the sub-menu:
There are two custom fields used by the individual VW Info pages, in order to pass through non-standard data to the front-end.
To add a custom field, select it from the “Name” drop-down within the “Custom Fields” section, then set a value of it, and then click the “Add Custom Field” button.
Here are the custom fields that can/should be used as part of an individual VW Info page:
- has-own-page: (Required) This should be set to a value of “yes”, as this denotes that the page can be access from the front-end. If this is not set, you will be redirected to the home page when trying to access the page’s URL.
- ca-vw-info-extra-text: (Optional) This is extra text displayed within the sub-menu on the individual VW Info page: