• 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

Add Post Formats in Stream Page

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 › Design Tips and Tricks › Add Post Formats in Stream Page

This topic is: not resolved

Tagged: post format, stream page

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 3 months ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 3, 2013 at 6:33 am #53924
    francky
    Member

    I would also like to add more features in the stream page (http://www.briangardner.com/tutorials/stream-page/) so as it can look like http://demo.studiopress.com/mindstream/ with clickable images on the left depending on the post format, explained here >> http://www.briangardner.com/code/add-post-formats/

    NOTE: I'm using Epik Theme >> demo.appfinite.com/epik/

    Please NOTE that I want to have the look of mindstream theme on Stream Page only and not for other blog look/posts!

    I've just found that Brian has removed the page (http://www.briangardner.com/tutorials/stream-page/) so please find below how I added the stream page:

    I added the following code in functions.php (Please remember to save changes in permalinks after adding the code)`//* Create stream custom post type
    add_action( 'init', 'stream_post_type' );
    function stream_post_type() {
    register_post_type( 'stream',
    array(
    'labels' => array(
    'name' => __( 'Stream' ),
    'singular_name' => __( 'Stream' ),
    ),
    'has_archive' => true,
    'hierarchical' => true,
    'public' => true,
    'rewrite' => array( 'slug' => 'stream' ),
    'supports' => array( 'title', 'editor', 'custom-fields', 'genesis-seo', 'thumbnail' ),
    )
    );
    }`

    I created archive-stream.php in the theme and add the following code;`<?php

    //* Remove the Genesis post content and replace with WordPress
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    add_action( 'genesis_post_content', 'the_content' );

    //* Remove the post title
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );

    //* Relocate the post info function
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_action( 'genesis_after_post_content', 'genesis_post_info' );

    //* Remove the post meta function
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );

    genesis();`

    I shall appreciate your kind support coders!

    November 10, 2013 at 11:51 am #72074
    Susan
    Moderator

    As you posted this over 3 months ago, I am hoping that you got your issue resolved. If not, please respond back here, and I will escalate for you.

    Thanks!

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ 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