Community Forums › Forums › Archived Forums › General Discussion › Add TAGS in Posts in Stream Page by Brian Gardner
Tagged: stream, stream page
- This topic has 12 replies, 2 voices, and was last updated 10 years, 8 months ago by francky.
-
AuthorPosts
-
August 2, 2013 at 12:21 am #53684franckyMember
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 #53685Brad DaltonParticipantAugust 3, 2013 at 1:25 am #53889franckyMemberThank 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 #53890Brad DaltonParticipantNo worries.
Please test out all modifications to PHP code locally.
August 3, 2013 at 2:37 am #53894franckyMemberSure! 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 #53900franckyMemberADDITION:
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 #53901Brad DaltonParticipantAugust 3, 2013 at 3:57 am #53903Brad DaltonParticipantAdd comments to this line in the code:
'supports' => array( 'title', 'editor', 'custom-fields', 'genesis-seo', 'thumbnail', 'comments' ),
August 3, 2013 at 4:54 am #53912franckyMemberThank 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 #53913Brad DaltonParticipantYou 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"
August 3, 2013 at 5:14 am #53914franckyMemberSorry 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 #53919franckyMemberPERFECT!!
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 #53925franckyMemberAs 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/ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.