• 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 TAGS in Posts in Stream Page by Brian Gardner

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 › Add TAGS in Posts in Stream Page by Brian Gardner

This topic is: not resolved

Tagged: stream, stream page

  • This topic has 12 replies, 2 voices, and was last updated 9 years, 6 months ago by francky.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 2, 2013 at 12:21 am #53684
    francky
    Member

    I would like to enable adding TAGS in posts I create for my Stream Page by Brian Gardner
    Here is the code for the Stream Page http://www.briangardner.com/tutorials/stream-page/

    How can I go through this? I shall appreciate any support.

    August 2, 2013 at 1:58 am #53685
    Brad Dalton
    Participant

    Replace the functions.php code for the stream with this code:


    Get Help – Book Consultation.

    August 3, 2013 at 1:25 am #53889
    francky
    Member

    Thank you very much! The code worked so perfectly!

    SInce I had some few other modifications, I assume I only had to add that ['taxonomies' => array( 'post_tag' ),] in the code, right?

    Otherwise the code works fine! I greatly appreciate your kind support, Sir!

    August 3, 2013 at 1:31 am #53890
    Brad Dalton
    Participant

    No worries.

    Please test out all modifications to PHP code locally.


    Get Help – Book Consultation.

    August 3, 2013 at 2:37 am #53894
    francky
    Member

    Sure! Thank you! I appreciate it, Sir!

    By the way, I would also like to add more features in the stream so as to look like http://demo.studiopress.com/mindstream/ with clickable images on the left depending with weather the update is a Quote, Image, Video, Audio, Normal Post e.t.c.
    I'm using Epik theme >> demo.appfinite.com/epik/

    Should I start a new thread maybe about this?

    I shall appreciate your professional support, Sir!

    August 3, 2013 at 3:53 am #53900
    francky
    Member

    ADDITION:
    How can I also enable comments on posts in the stream? Of course after one goes directly to the link of the corresponding post.

    Thank you in advance!

    August 3, 2013 at 3:53 am #53901
    Brad Dalton
    Participant

    Yes. Please start a new thread for each question.


    Get Help – Book Consultation.

    August 3, 2013 at 3:57 am #53903
    Brad Dalton
    Participant

    Add comments to this line in the code:

    'supports' => array( 'title', 'editor', 'custom-fields', 'genesis-seo', 'thumbnail', 'comments' ),
    

    Get Help – Book Consultation.

    August 3, 2013 at 4:54 am #53912
    francky
    Member

    Thank you Sir!

    I have added the "comment" as instructed above but it hasn't worked out!

    Am I supposed to change something in archive-stream.php too maybe?

    I can see Brian has removed the code/ or maybe he's doing some changes in his site but just in case, the code to be put in that archive-stream.php is here below;

    <?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();
    August 3, 2013 at 4:57 am #53913
    Brad Dalton
    Participant

    You need to add it to this code http://www.studiopress.community/topic/add-tags-in-posts-in-stream-page-by-brian-gardner/#post-53685

    By the way, its:

    'comments'
    

    Not

    "comments"
    

    Get Help – Book Consultation.

    August 3, 2013 at 5:14 am #53914
    francky
    Member

    Sorry Sir!
    Yes, I put as you instructed 'comments' and not "comment"
    I used "comments" as a quote in the conversation and not the code!

    Here is my code which can't enable comments in stream posts;

    //* 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,
                'taxonomies' => array( 'post_tag' ),
                'public' => true,
                'rewrite' => array( 'slug' => 'stream' ),
                'supports' => array( 'title', 'editor', 'custom-fields', 'genesis-seo', 'thumbnail', 'comments' ),
            )
        );
    }

    I shall appreciate your kind consideration!

    August 3, 2013 at 5:27 am #53919
    francky
    Member

    PERFECT!!

    I'm very sorry Sir! The code works fine only that I was looking at old posts before adding the 'comments' in the code.
    All new posts have "Allow Comments" checked and show comments. I have enabled in all old posts and it's working fine!

    I'm very sorry for causing unnecessary inconveniences!

    The code works so PERFECTLY and I greatly appreciate it Sir!

    Thank you very much, Sir!

    August 3, 2013 at 6:36 am #53925
    francky
    Member

    As this is resolved already, I created a new thread on how to add the post format in stream page as advised!
    I shall appreciate your kind support, Sir!
    LINK: http://www.studiopress.community/topic/add-post-formats-in-stream-page/

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