Skip to main content

Single Post & Archive Templates

Single Post Title (Page Hero)

GP Element: ID 3663 — #Single Post Title

Renders above each documentation post:

<!-- Breadcrumbs with Rank Math -->
<div class="breadcrumb">Code / Git Quick Reference</div>

<!-- Post title as H1 -->
<h1>Git Quick Reference</h1>

<!-- Meta line: Author badge icon + name | dot divider | date -->
<div class="opshell-meta-line">
<span>by <a href="/author/admin/">Admin</a></span>
<span>updated Jul 20, 2026</span>
<span>2 min read</span>
</div>

The template uses GenerateBlocks dynamic data sources:

  • Breadcrumbs are from Rank Math / SEOPress.
  • Title is post-title dynamic content.
  • Author uses author-name with author-archives link.
  • Date uses post-date dynamic content.

Single Post Content

GP Element: ID 1371 — #Single Post Content

Renders the main content area:

  1. Featured image (if set, with caption).
  2. Post content via the_content (handled by GeneratePress dynamic content block).
  3. Tags listing.
  4. Related posts (query loop using order_by_related class, filtered by same category).
  5. Comments section.

The content wrapper uses a centered 768px column with responsive padding.

Archive Template

GP Element: ID 863 — #Archive Template

Standard archive layout with:

  1. Archive title bar (category name, search query, etc.).
  2. Post loop using the #Archive Post Layout card.

Archive Post Layout

GP Element: ID 3584 — #Archive Post Layout

Each archive post card in the loop:

┌──────────────────────────────────────────────────────────┐
│ ┌──────────────────┐ ┌────────────────────────────────┐ │
│ │ Featured image │ │ Post title (H2, linked) │ │
│ │ (thumbnail) │ │ Excerpt (80 words) │ │
│ │ │ │ — date │ │
│ └──────────────────┘ └────────────────────────────────┘ │
└──────────────────────────────────────────────────────────┘

404 Template

GP Element: ID 2140 — 404 Layout

Custom centered 404 page with navigation support.