BandittenJacob
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Filter to remove Categori Archive: %s in skeleton themei did this, in the category.php by changing the code:
printf( __( 'Category Archives: %s', 'smpl' ), single_cat_title( '', false ) );to this code:
printf( __( '%s', 'smpl' ), single_cat_title( '', false ) );Forum: Fixing WordPress
In reply to: Insert author-info on certain category pagei did it by moving the code into my sidebar.php file, like this:
<!-- Vis forfattere --> <?php if ( in_category('16')) { ?> <div> <?php $blogusers = get_users('blog_id=1&orderby=nicename&role=author'); foreach ($blogusers as $user) {?> <div id="entry-author-info"> <a href="<?php echo get_author_posts_url( $user->ID ); ?>"> <h2><?php printf( __( 'About %s', 'smpl' ), $user->display_name ); ?></h2> </a> <?php echo get_avatar( $user->ID, apply_filters( 'skeleton_author_bio_avatar_size', 120 ) ); ?> <?php the_author_meta( 'description', $user->ID ); ?> <div id="author-link"> </div> <div class="clear"></div> </div><?php } ?> </div> <?php } ?>Forum: Fixing WordPress
In reply to: Insert author-info on certain category pageWell after hours of trial and error, i finally arrived at this solution:
<!-- Vis forfattere --> <div> <?php $blogusers = get_users('blog_id=1&orderby=nicename&role=author'); foreach ($blogusers as $user) {?> <div id="entry-author-info"> <a href="<?php echo get_author_posts_url( $user->ID ); ?>"> <h2><?php printf( __( 'About %s', 'smpl' ), $user->display_name ); ?></h2> </a> <?php echo get_avatar( $user->ID, apply_filters( 'skeleton_author_bio_avatar_size', 120 ) ); ?> <?php the_author_meta( 'description', $user->ID ); ?> <div id="author-link"> </div> <div class="clear"></div> </div><?php } ?> </div>Now i only need to find out how to swap it to the right column of my page.
Forum: Fixing WordPress
In reply to: Insert author-info on certain category pageI need a link to go to that authors posts. I have copied that code into the category-16.php also. But it is also stolen from author.php, so it doesn’t work.
<!-- Vis forfattere --> <div> <?php $blogusers = get_users('blog_id=1&orderby=nicename&role=author'); foreach ($blogusers as $user) {?> <div id="entry-author-info"> <h2><?php printf( __( 'About %s', 'smpl' ), $user->display_name ); ?></h2> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'skeleton_author_bio_avatar_size', 120 ) ); ?> <?php the_author_meta( 'description' ); ?> <div id="author-link"> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'smpl' ), get_the_author() ); ?> </a> </div> <div class="clear"></div> </div><?php } ?> </div>Forum: Fixing WordPress
In reply to: Insert author-info on certain category pageIf you look at my page now, you will see somewhat the list i want to make. I don’t want it right there, but for now i am just trying to build the list, and then i will put it where it needs to be. Problem now is that i have stolen code from author.php and that does not get the info i want.
If you look here i think you will see what i mean:http://mamuti.dk/category/hyggehjoernet/mit-liv-og-dagligdag/
My code looks like this:
<div> <?php $blogusers = get_users('blog_id=1&orderby=nicename&role=author'); foreach ($blogusers as $user) {?> <div id="entry-author-info"> <h2><?php printf( __( 'About %s', 'smpl' ), $user->display_name ); ?></h2> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'skeleton_author_bio_avatar_size', 120 ) ); ?> <?php the_author_meta( 'description' ); ?> <div class="clear"></div> </div><?php } ?> </div>I know the problem is that i ask to get meta from the wrong user (maybe even the wrong way), but i don’t know how to get it correctly.
Forum: Fixing WordPress
In reply to: Insert author-info on certain category pageMy thought was something like a sidebar, with the a small box for every author, containing their name, picture, bio and a link to all their posts.
Forum: Fixing WordPress
In reply to: Remove thumbnail from postsi mean functions.php 🙂
Forum: Fixing WordPress
In reply to: Remove thumbnail from postsAnd so it would 🙂 Thanks a lot man. I have fought with this for hours. 🙂 I already had the childtheme installed, as per that installation link i posted, so it was kind of easy just to put
remove_filter( ‘the_content’,’skeleton_thumbnailer’ );
into the existing funcions.pgp file in that theme. 🙂