Add Post Formats in Stream Page

Community Forums Forums Design Tips and Tricks Add Post Formats in Stream Page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 10 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53924

    francky
    Participant
    Post count: 41

    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!

    #72074

    Susan
    Moderator
    Post count: 9010

    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!


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.