Title: Code Help &#8211; Byline Authors Displayed
Last modified: October 21, 2021

---

# Code Help – Byline Authors Displayed

 *  Resolved [ljscott](https://wordpress.org/support/users/ljscott/)
 * (@ljscott)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/code-help-byline-authors-displayed/)
 * I cannot figure out which part of the code I should be editing to get multiple
   authors to show up in the byline. I have read the page on [Publish Press](https://publishpress.com/knowledge-base/customize-authors-byline-themes/)
   and on [WordPress](https://developer.wordpress.org/themes/advanced-topics/child-themes/#adding-template-files),
   but still can’t figure it out.
 * I can’t even find a place where author or byline meta data has been coded.
 * Here’s the function code:
 *     ```
       <?php
       /**
        * Theme functions and definitions
        *
        * @package News-way
        */
       if ( ! function_exists( 'newsway_enqueue_styles' ) ) :
       	/**
       	 * @since 0.1
       	 */
       	function newsway_enqueue_styles() {
       		wp_enqueue_style( 'newsup-style-parent', get_template_directory_uri() . '/style.css' );
       		wp_enqueue_style( 'newsway-style', get_stylesheet_directory_uri() . '/style.css', array( 'newsup-style-parent' ), '1.0' );
       		wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.css');
       		wp_dequeue_style( 'newsup-default',get_template_directory_uri() .'/css/colors/default.css');
       		wp_enqueue_style( 'newsway-default-css', get_stylesheet_directory_uri()."/css/colors/default.css" );
       		if(is_rtl()){
       		wp_enqueue_style( 'newsup_style_rtl', trailingslashit( get_template_directory_uri() ) . 'style-rtl.css' );
       	    }
   
       	}
   
       endif;
       add_action( 'wp_enqueue_scripts', 'newsway_enqueue_styles', 9999 );
   
       add_action( 'customize_register', 'newsway_customizer_rid_values', 1000 );
       function newsway_customizer_rid_values($wp_customize) {
   
         $wp_customize->remove_control('main_banner_section_background_image');
   
         $wp_customize->remove_control('select_slider_news_category');
   
         $wp_customize->remove_control('show_main_news_section');
   
         $wp_customize->remove_control('main_slider_section_title');
   
         $wp_customize->remove_control('tabbed_section_title');
   
         $wp_customize->remove_control('latest_tab_title');
   
         $wp_customize->remove_control('popular_tab_title');
   
         $wp_customize->remove_control('trending_tab_title');
   
         $wp_customize->remove_control('select_trending_tab_news_category');
   
         $wp_customize->remove_control('banner_advertisement_section');
   
         $wp_customize->remove_control('banner_advertisement_section_url'); 
   
         $wp_customize->remove_control('newsup_open_on_new_tab');    
   
        }
   
       function newsway_theme_setup() {
   
       //Load text domain for translation-ready
       load_theme_textdomain('newsway', get_stylesheet_directory() . '/languages');
   
       require( get_stylesheet_directory() . '/hooks/hooks.php' );
       require( get_stylesheet_directory() . '/hooks/hook-header-section.php' );
   
       // custom header Support
       			$args = array(
       			'default-image'		=>  '',
       			'width'			=> '1600',
       			'height'		=> '600',
       			'flex-height'		=> false,
       			'flex-width'		=> false,
       			'header-text'		=> true,
       			'default-text-color'	=> '#fff'
       		);
       		add_theme_support( 'custom-header', $args );
       } 
       add_action( 'after_setup_theme', 'newsway_theme_setup' );
   
       /**
        * Register widget area.
        *
        * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
        */
       function newsway_widgets_init() {
   
   
       	register_sidebar( array(
       		'name'          => esc_html__( 'Front-Page Canvas Section', 'news-way'),
       		'id'            => 'front-page-canvas-sidebar',
       		'description'   => '',
       		'before_widget' => '<div id="%1$s" class="mg-widget %2$s">',
       		'after_widget'  => '</div>',
       		'before_title'  => '<div class="mg-wid-title"><h6>',
       		'after_title'   => '</h6></div>',
       	) );
   
       	register_sidebar( array(
       		'name'          => esc_html__( 'Front-Page Left Sidebar Section', 'news-way'),
       		'id'            => 'front-left-page-sidebar',
       		'description'   => '',
       		'before_widget' => '<div id="%1$s" class="mg-widget %2$s">',
       		'after_widget'  => '</div>',
       		'before_title'  => '<div class="mg-wid-title"><h6>',
       		'after_title'   => '</h6></div>',
       	) );
   
       	register_sidebar( array(
       		'name'          => esc_html__( 'Front-Page Right Sidebar Section', 'news-way'),
       		'id'            => 'front-right-page-sidebar',
       		'description'   => '',
       		'before_widget' => '<div id="%1$s" class="mg-widget %2$s">',
       		'after_widget'  => '</div>',
       		'before_title'  => '<div class="mg-wid-title"><h6>',
       		'after_title'   => '</h6></div>',
       	) );
   
   
   
       }
       add_action( 'widgets_init', 'newsway_widgets_init' );
   
       function newsway_remove_some_widgets(){
       // Unregister Frontpage sidebar
       unregister_sidebar( 'front-page-sidebar' );
       }
       add_action( 'widgets_init', 'newsway_remove_some_widgets', 11 );
   
       function newsway_menu(){ ?>
       <script>
       jQuery('a,input').bind('focus', function() {
           if(!jQuery(this).closest(".menu-item").length && ( jQuery(window).width() <= 992) ) {
           jQuery('.navbar-collapse').removeClass('show');
       }})
       </script>
       <?php }
       add_action( 'wp_footer', 'newsway_menu' );	
       // BEGIN ENQUEUE PARENT ACTION
       // AUTO GENERATED - Do not modify or remove comment markers above or below:
   
       if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
           function chld_thm_cfg_locale_css( $uri ){
               if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
                   $uri = get_template_directory_uri() . '/rtl.css';
               return $uri;
           }
       endif;
       add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
   
       if ( !function_exists( 'chld_thm_cfg_add_parent_dep' ) ):
       function chld_thm_cfg_add_parent_dep() {
           global $wp_styles;
           array_unshift( $wp_styles->registered[ 'newsway-style' ]->deps, 'newsup-style-parent' );
       }
       endif;
       add_action( 'wp_head', 'chld_thm_cfg_add_parent_dep', 2 );
   
       // END ENQUEUE PARENT ACTION
       ```
   
 * I have tried just pasting the code suggested on the Publish Press page about 
   this in a bunch of places, but none of that has worked.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-help-byline-authors-displayed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * (@stevejburge)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/code-help-byline-authors-displayed/#post-14993323)
 * Hi [@ljscott](https://wordpress.org/support/users/ljscott/)
 * Thanks for using PublishPress Authors.
 * Sorry, we can’t help with custom code for the Free version of the plugin.
 * The PHP snippet needs to go inside a file such as single.php where the layout
   for your posts is controlled.

Viewing 1 replies (of 1 total)

The topic ‘Code Help – Byline Authors Displayed’ is closed to new replies.

 * ![](https://ps.w.org/publishpress-authors/assets/icon-256x256.png?rev=3391318)
 * [Co-Authors, Multiple Authors and Guest Authors in an Author Box with PublishPress Authors](https://wordpress.org/plugins/publishpress-authors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publishpress-authors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publishpress-authors/)
 * [Active Topics](https://wordpress.org/support/plugin/publishpress-authors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publishpress-authors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publishpress-authors/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html](https://wordpress.org/support/topic-tag/html/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steve Burge](https://wordpress.org/support/users/stevejburge/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/code-help-byline-authors-displayed/#post-14993323)
 * Status: resolved