This is an initial WordPress plugin for displaying virtual pages which can use a template for selecting the contents.
Warning: This plugin is still in beta
- Copy the plugin directory into your
wp-content/plugins
directory - Navigate to the Plugins dashboard page
- Activate this plugin
- phpbay wordpress plugin
- phpzon wordpress plugin
- Create a post / page in wordpress
- Add contents, may contain text, html and shortcodes (see example content show below)
Welcome to this website please find the products about <strong>%vpt-keyword%</strong> below and if you can’t find your item just use the search box!
[phpbay keywords="%vpt-keyword%" num="8" siteid="1" sortorder="BestMatch" templatename="columns" columns="4"]
- save page as
draft
(note: virtual pages will use pages which are unpublished) - goto
Settings
>Permalinks
- (optional), e.g./shop/%postname%/
- In the admin panel, open -
Virtual Page Settings
- update to your desired settings.
- adding custom menus that will redirect to a virtual page, it will still be done as normal -
Appearance > Menu
There are two ways with which you can add a virtual page:
- Using the links metabox
Appearance > Menus > Links
. The value in the url field should either be http://, /, or *. - Using
Appearance > Menus > Virtual Page
, Just add the titles (separated by a new line) and it will add the menu items in bulk to the menu structure.