This article shows you how to build a view and place it on your site. A view is a saved display of the pages in one page set: a grid of every service you offer in a city, an index of all your location pages, or a "related pages" block at the bottom of each landing page. You build it once in the LPagery dashboard, then paste its shortcode wherever you want the pages to appear.
Building views is available on the LPagery Extended plan and above.
Click here to purchase LPagery Pro ->
Views you've already built keep rendering on your site without an active license. You need a license to create or edit a view.
1. Open the Views tab
In the LPagery dashboard, click Views in the top navigation. If you haven't built one yet, you'll see the empty state.
Click Create your first view, or New view once you have some.
You can also start from Manage Pages. Open the … menu on any page set and click Create view. That skips the next step, because LPagery already knows which page set you mean.
2. Choose a page set
A view always lists pages from exactly one page set. Pick the set you want to show pages from.
3. Name the view and choose what to show
The View name is only shown to you, in the Views list. Visitors never see it. Give it a name that says what it displays, like "Other services in this city".
Then choose What to show:
Pages matching a value (default): shows only the pages that share a value with the page the shortcode is on, for example the other services available in this page's city. Use it for a "related pages" block inside your template.
All pages in this set: lists every page in the page set and ignores any match. Use it for an index or hub page linking to everything.
All pages in this set works on any page, including a homepage or a hub, because it needs no match value. It shows the first 1,000 pages of the set. If your set is bigger, LPagery trims the list and shows you a notice on the page. Only you, as an admin, can see that notice. Visitors just see the list.
4. Pick what the pages have in common
This step only appears for Pages matching a value.
Choose the column that related pages share. LPagery shows each column with how many distinct values it has and a few samples, so you can tell a good match key from a bad one.
Here, city has 3 values (Austin, Denver, Seattle), so on the Plumbing in Austin page the view shows the other Austin pages.
Pick a column whose values repeat across pages, like a city or a category. A value that is unique to each page, like a title, puts every page in a group of its own, so every list would contain just one page. LPagery warns you when the column you've picked looks like that.
5. Choose a layout
Grid shows a card per page, with an image. List shows a plain linked list of labels. Grid is the default.
6. Set what each card shows
Open Card content. Each card is built from three slots.
Label: a placeholder column, or a WordPress field (title, excerpt, permalink). Defaults to the most useful placeholder column LPagery can find.
Image: the generated page's featured image, or nothing. Defaults to the featured image.
Sub-text: a placeholder column, or a WordPress field. None by default.
The Image slot only offers the featured image. A raw image value from your spreadsheet may not be a working URL, and the featured image always is.
There is no link slot. The whole card is the link, and it points at that page's own permalink.
7. Check the live preview
The preview updates as you build. Pick a value to preview (say, Austin). You can also narrow it to one generated page to see exactly what a visitor sees there. A page is always left out of its own list.
8. Create the view and place its shortcode
Click Create view. Your view now appears in the Views list with its shortcode ready to copy.
Copy [lpagery_view id="3"] (your id will differ) and paste it into your template page, where you want the related pages to appear. Every generated page is built from the template, so the view then appears on all of them, and each page reads its own match value.
On Plumbing in Austin, the view shows Electrical and Roofing in Austin. On Roofing in Denver, it shows the Denver pages. One shortcode covers every page.
Using a view on a page LPagery didn't generate
A matching view reads the match value from the page it's on. A homepage or a hub page has no such value, so you supply it yourself:
[lpagery_view id="3" value="Austin"]
That renders the Austin pages anywhere on your site. The builder shows you this exact snippet, pre-filled, next to the regular one.
An All pages in this set view never needs value. It works anywhere as it is.
Settings reference
These sections start collapsed. The defaults suit most sites.
Links & text
Open links in: Same tab (default) or New tab.
Label capitalization: As-is (default), Sentence case, or Title Case. Capitalization only restyles the label on screen. It never changes your stored data and never affects matching.
Appearance (grid layout only)
Columns: Auto (default), 1 column, or Up to 2, 3, 4, 5 or 6. Columns is a maximum. The grid always reflows to fewer columns on smaller screens.
Border: None, Subtle (default), Strong.
Shadow: None, Subtle (on hover) (default), Medium.
Corners: Square, Rounded (default), Pill.
Spacing: Compact, Normal (default), Relaxed.
Text alignment: Left (default), Center.
Footer
Pagination: Numbered pages (default), or No pagination (one long list).
Items per page: any number, 50 by default.
Show result count: off by default. Adds a "Showing X of Y" line below the items.
Order
Order by: Alphabetical (by label) (default), Date created (newest first), Date created (oldest first), Custom placeholder field, or WordPress menu order.
Order field: the placeholder column to sort on, shown only when ordering by a custom field.
Troubleshooting
A card shows the page title instead of my column value
The column you mapped to the Label slot is empty for that page. LPagery then falls back to the page's title instead of showing a blank card. Check that every row in your spreadsheet has a value in that column.
I pasted the shortcode on a page and nothing appears
A matching view needs a match value, and a page LPagery didn't generate has none, so nothing renders. If you're logged in as an administrator, you'll see a yellow notice on the page naming the missing column and telling you to add value="…". Visitors don't see that notice, they just see nothing. Add the value attribute, or switch the view to All pages in this set.
My shortcode shows the wrong pages
[lpagery_view id="…"] and the older [lpagery_urls id="…"] both take an id, but they mean different things. lpagery_view takes the id of a view, and lpagery_urls takes the id of a page set. An id copied from one into the other shows the wrong pages, or none. Copy the shortcode straight from the Views list.
What about the old list shortcode?
[lpagery_urls id="…"] still works and is still free. It prints a plain, unstyled list of every page in a page set, with no images, ordering, or pagination. Views cover everything beyond that, and nothing breaks if you keep using the old shortcode.
To interlink pages one by one instead of in a list, see How to Interlink Pages.









