Forum Replies Created
-
AuthorPosts
-
ceelynxo
MemberOh wow, I didn't know that! Explains a lot of grief I'm having!
July 13, 2016 at 4:22 pm in reply to: How to remove tags from posts only on the home & archives + other meta questions #189425ceelynxo
MemberHey Brad, unfortunately that didn't work for me either. I ended up with meta in the header and footer , BUT, I kept playing around with it and I came across one of your tutorials on removing seo-titles conditionally, and it didn't help me either lol but the endif you used in the end, reminded me of a tag I would someitmes see when looking through php files, 'elseif'... I did some reading up on how to use elseif and long story short I FIXED IT!! 😀 😀 this is the code I ended up using,
//* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_categories before="Filed Under: "]'; return $post_info; } //* Customize the entry meta in the entry footer (requires HTML5 theme support) add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) {if ( is_front_page() && is_home() ) { $post_meta = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_meta; } elseif ( is_single() ) {$post_meta = '[post_date] by [post_author_posts_link] [post_comments] [post_tags] [post_edit]'; return $post_meta; }}
It gave me just what I wanted!! Thank you so much for your help and for being patient with me!
July 13, 2016 at 1:29 pm in reply to: How to remove tags from posts only on the home & archives + other meta questions #189414ceelynxo
Memberokay so I added the lines you suggested and it didn't give me error message (thankfully) but it didn't fix my problem either 🙁 My posts & pages still don't have an entry footer... Maybe you can see what I'm doing wrong, here's all the custom code I've added to my functions:
//* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_categories before="Filed Under: "]'; return $post_info; } //* Customize the entry meta in the entry footer (requires HTML5 theme support) add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) {if ( is_front_page() && is_home() ) { $post_meta = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_meta; }} remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
July 13, 2016 at 12:46 am in reply to: How to remove tags from posts only on the home & archives + other meta questions #189379ceelynxo
MemberYou've completely lost me lol. Do I add the first code you showed by itself and just add it in addition to my customized homepage codes I just added? I tried it and got the syntax error... I also tried adding the same footer meta I added for the homepage, but without conditions and that didn't work either.
July 12, 2016 at 10:14 pm in reply to: How to remove tags from posts only on the home & archives + other meta questions #189369ceelynxo
MemberThank you Braddalton, I was able to get the homepage meta just the way I wanted, but when I added the footer meta code with the conditions
//* Customize the entry meta in the entry footer (requires HTML5 theme support) add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) {if ( is_front_page() && is_home() ) { $post_meta = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_meta; }}
It made the homepage perfect but took away the footer meta of the single posts & pages... how can I get them back without affecting the homepage?? I tried adding another set of conditions for pages & single posts using the following code but I got an error and had to upload my back-up functions page
//* Customize the entry meta in the entry footer (requires HTML5 theme support) add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) {if (is_single () && is_page() ) { $post_meta = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] [post_tags]'; return $post_meta; }}
ceelynxo
MemberThank you, I think y'all are definitely right... I live previewed it with other themes and they didn't do it, so I sent the theme creator a message. Thanks for the help!
-
AuthorPosts