• 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

Blog Post Page with Introductory Text

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 › Blog Post Page with Introductory Text

This topic is: not resolved

Tagged: custom template

  • This topic has 4 replies, 3 voices, and was last updated 10 years ago by Mark.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 15, 2013 at 11:57 am #73190
    Mark
    Member

    I am trying to do something which should be drop-dead simple and is apparently insanely complicated.

    I want to create a page template which:

    - displays some text that I added to a page via the dashboard; and,
    - displays the titles of each blog post

    In other words, the page is a list of post titles with some introductory/framing text.

    I am fine with writing PHP code to accomplish this (it's what I've been doing for the last couple of days trying to implement this idea).

    Surely this is a solved problem. I can't be the first WordPress author who wants to wrap some context around a set of posts? So if anyone has any links for me to read I'd love to get them.

    November 15, 2013 at 12:07 pm #73195
    nutsandbolts
    Member

    It might be easiest to add a widget area to display at the top of the blog page - that way you can drop in your content and the blog posts will show up underneath.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 15, 2013 at 1:04 pm #73221
    Mark
    Member

    Thanks, Andrea. I considered that but didn't pursue it because it looked like more work than what I eventually did. Which basically was to include the static text in the custom template file as HTML markup.

    It feels very wrong to include content in what amounts to a code file, but it worked. I may take a shot at using the widget area approach when the dust settles, because it would be nice to be able to use the dashboard page editing capability to change the introductory text. Rather than having to fire up a console to edit a code file.

    November 15, 2013 at 2:15 pm #73241
    Summer
    Member

    Technically, that's not much different than including a widget in the template. In one, you'd have to edit the template to add your hand-rolled HTML, in the other, you'd be updating your hand-rolled HTML in the text widget you added.

    I've created page templates that included paragraphs of intro, and even some that displayed a banner splash (that the end user could manage by changing the page's featured image).

    So what you didn't isn't "wrong"... it's just a matter of persepective on where you put your code!


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    November 15, 2013 at 5:55 pm #73315
    Mark
    Member

    Good point. My MVC background is showing :).

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2023 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