• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Help: simple custom archive-slug.php

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Help: simple custom archive-slug.php

This topic is: not resolved

Tagged: archive, genesis, slug

  • This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by grau.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 28, 2015 at 9:17 am #169354
    grau
    Member

    Hi there...

    How would a simple, minimal "archive-myslug.php" have to look to show a specific wordpress page instead of the archive of my-slug?

    I want the "myslug" archive to simply display a manually set wordpress page. So no archive listing - just the plain wordpress page.

    October 28, 2015 at 10:36 am #169366
    Brad Dalton
    Participant

    You would use page-slug or page.id.php

    Swap out slug with your page slug or id with your page id.

    See WordPress Template Heirarchy.


    Tutorials for StudioPress Themes.

    October 28, 2015 at 11:13 am #169371
    grau
    Member

    Hi Brad, thank you for your fast response but I'm a little bit confused.

    I made a CPT with slug "myslug" and "has_archive" = true but I want to show a page instead of the CPT archive.

    So would I create an archive-myslug.php or a page-myslug.php and what must be inside?

    My guess ist, genesis(); won't be enough, right?

    October 28, 2015 at 11:38 am #169373
    Brad Dalton
    Participant

    archive-cpt.php where cpt is the name of your custom post type

    You only need an opening php tag and the genesis loop function like this:

    <?php
    
    genesis();
    

    Tutorials for StudioPress Themes.

    October 28, 2015 at 12:29 pm #169376
    grau
    Member

    Sorry to bother you Brad,

    But the question is: what do I have to put into "archive-cpt.php" to display a "standard wordpress page" and NOT the archive.

    I made a wordpress page, let's say ID = 123, and want to display that page with all "modifications" I made to the "genesis-layout" (sidebar, full-width, ...) via the backend to this wordpress page.

    genesis(); works but gives me the standard archive view of my CPT - I just want to display that specific "wordpress page" similar to the output of "single.php" instead of the archive loop.

    October 29, 2015 at 4:13 am #169446
    grau
    Member

    maybe I'd have to play around with wp_query but I don't have a clue how to do it...

    Is there no easy way just to make archive.php to output ONE specific wordpress page?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble