Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
January 4, 2014 at 2:32 am in reply to: Adding a Footer container to Entry Meta in Archive Loops #83078
marakas
MemberThis is not too elegant, but it works. I still don't like it because it's too much of a hack. Hopefully someone can come up with a more elegant solution. I'm sure this is very easy to do.
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_footer', 'sp_post_meta_filter' ); function sp_post_meta_filter() { global $post; echo '<footer class="entry-footer"><p class="entry-meta">' . '<span class="entry-categories">' . 'Filed Under: <a href="http://vainsovain.com/review/epilator/" title="View all posts in Epilators" rel="category tag">' . 'Epilators</a>, ' . '<a rel="category tag" title="View all posts in Reviews" href="http://vainsovain.com/review/">Reviews</a></span>'; if( $tags = wp_get_post_tags($post->ID) ) { echo '<span class="entry-tags">Tagged With: '; $tags = wp_get_post_tags( $post->ID ); $num_tags = count($tags); $c = 0; foreach( $tags as $tag ) { echo '<a rel="tag" href="http://vainsovain.com/tag/' . $tag->slug . '/">' . $tag->name . '</a>'; $c++; if ( $c !== $num_tags ) echo ', '; } echo '</span>'; } echo '</p></footer>'; }
January 4, 2014 at 1:00 am in reply to: Adding a Footer container to Entry Meta in Archive Loops #83072marakas
MemberIs there no resolution on this yet? Actually, I'm running into the same issue and very curious on how to resolve this. I also have a custom post type that shows everything except the .entry-footer container.
Any pointers would be greatly appreciated. Thanks!
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)