Polylang returns empty author pages
-
Hi Chouby,
I really love the free version of polylang, but I ran into an error: the content of my author pages is empty. If I deactive polylang, I’m fine. Archives work properly. Somehow the author pages are included in the translation process because I can access “english pages” of my author profile (see below).
I investigated further: through your plugin, the author’s posts couldn’t get find. I show you my author template so maybe you could help me:
<?php /** * The template for displaying Author Archive pages. * * @package WellThemes * @file author.php * @author Well Themes Team * @link https://wellthemes.com */ ?> <?php get_header(); ?> <section id="main"> <div class="inner-wrap"> <div id="content" class="post-archive author-archive"> <?php if ( have_posts() ) : /* Queue the first post, that way we know * what author we're dealing with (if that is the case). * * We reset this later so we can run the loop * properly with a call to rewind_posts(). */ the_post(); ?> <?php /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); ?> <div class="section-title archive-header clearfix"> <h1> <?php printf( __( 'Autorenseite: %s', 'wellthemes' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?> </h1> <?php // If a user has filled out their description, show a bio on their entries. if ( get_the_author_meta( 'description' )) {?> <div class="archive-desc entry-author section"> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), 140 ); ?> </div> <div class="author-right"> <div class="author vcard"> <span class="name fn"><?php the_author(); ?></span> </div> <p><?php the_author_meta( 'description' ); ?></p> </div> </div><?php } ?> <span class="sep main-color-bg"></span> </div> <div class="archive-list"> <?php $archive_style = wt_get_option( 'wt_archive_style' ); $i = 0; while ( have_posts() ) : the_post(); if ( $archive_style == 'compact' ) { $post_class = ''; if ( $i % 2 == 1 ){ $post_class =' col-last'; } ?> <div class="one-half<?php echo esc_attr( $post_class ); ?>"> <?php get_template_part( 'content', 'excerpt' ); ?> </div><?php $i++; } else if ( $archive_style == 'full' ) { get_template_part( 'blog', 'excerpt' ); } else { get_template_part( 'blog2', 'excerpt' ); } endwhile; ?> </div> <?php wt_pagination(); ?> <?php endif; ?> </div><!-- /content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
– Your permalinks settings: day + name
– If you are using a static front page: no
– Your Polylang settings: well-shaped permalinks, hide default language info,
– A link to your site: https://go-to-guys.de/author/denniss, https://go-to-guys.de/en/author/denniss
– What you have already tried to solve your issue: could only locate that polylang definitely breaks the author pages by activating/deactivating the plugin
– If you detected a conflict with a theme or another plugin, a link where to download this theme or plugin (please don’t force people who want to help you to make a search): don’t know, if it’s a conflict, but I’m using chapter theme (https://themeforest.net/item/chapter-wordpress-magazine-theme/12158029)Thanks in advance
Dennis
- The topic ‘Polylang returns empty author pages’ is closed to new replies.