EXTENDED FEATURE

Interlink Generated Pages with Each Other

Add internal links between your generated pages using a simple shortcode. Link by position (next, previous, first, last) or by slug from your data source.

[lpagery_link] Shortcode

<!-- Template -->
[lpagery_link position="NEXT" title="Visit {city}" circle=true]

Source file order

#1

Miami

#2

Orlando

#3

Tampa

↺ Miami

Generated HTML

Miami:

<a class="lpagery_link_anchor" href="/orlando/">Visit Orlando</a>

Orlando:

<a class="lpagery_link_anchor" href="/tampa/">Visit Tampa</a>

Tampa:

<a class="lpagery_link_anchor" href="/miami/">Visit Miami</a>

Links created successfully

Shortcodes replaced with anchor tags

Benefícios

Como este recurso ajuda você

Sequential page navigation

Use position parameters (NEXT, PREV, FIRST, LAST) to create navigation between pages based on their order in your source file.

Circular navigation with loop

Enable the circle parameter to loop navigation — after the last page, link back to the first, and vice versa for seamless browsing.

Data-driven linking with slugs

Use placeholders like {link_to} from your source file to dynamically link to specific pages by their slug.

Improve SEO with internal links

Internal linking helps search engines discover and understand relationships between your pages, improving overall site SEO.

Em ação

Como funciona

Veja como o recurso funciona na prática

1

Add the shortcode to your template

Place the [lpagery_link] shortcode in your template page where you want internal links to appear. Choose between position-based or slug-based linking.

Position mode

[lpagery_link position="NEXT" title="Next Page" circle=true]

Slug mode

[lpagery_link slug="{link_to}" title="{link_title}"]

Add shortcode to template

2

Configure shortcode parameters

Customize how your links work using the available parameters: position (FIRST, LAST, NEXT, PREV), circle for looping, title for link text, target for how the link opens, and slug for data-driven links.

position

FIRST, LAST, NEXT, or PREV — links based on order in source file.

circle

true or yes — loops back to first page after last (or vice versa).

target

_blank, _self, _parent, _top — controls how the link opens.

Configure shortcode parameters

3

Generate pages with links

When you generate your pages, LPagery replaces each [lpagery_link] shortcode with an actual HTML anchor tag. Each link includes the lpagery_link_anchor class for easy styling.

Shortcode becomes

<a class="lpagery_link_anchor" href="...">Link Text</a>

Placeholders in title and slug are replaced with values from your data.

Generate pages with links

Casos de uso reais

Casos de uso reais

Alguns exemplos para quem isto foi criado

Previous/Next navigation

Create sequential navigation between location pages, service pages, or any ordered content. Perfect for guides, listings, and multi-page content.

Data-driven cross-linking

Define link relationships in your source file with columns like link_to and link_title. Each page links to its designated target dynamically.

Circular browsing experience

Enable circle mode so users can continuously browse through all pages without hitting a dead end — the last page links back to the first.