{"id":1083,"date":"2020-11-16T11:01:01","date_gmt":"2020-11-16T11:01:01","guid":{"rendered":"https:\/\/kadence-theme.com\/?post_type=knowledgebase&#038;p=1083"},"modified":"2025-07-28T18:29:39","modified_gmt":"2025-07-28T18:29:39","password":"","slug":"replace-author-html-multiple-author-support","status":"publish","type":"docs","link":"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/replace-author-html-multiple-author-support\/","title":{"rendered":"Replace Author HTML (Multiple Author Support)"},"content":{"rendered":"\n<p>If you are using a plugin like <a aria-label=\"PublishPress Author (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/publishpress-authors\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">PublishPress Authors<\/a> to create posts with multiple authors. Or you just want to change the way authors are formated you can hook into the Kadence Theme to change the author HTML output using a custom filter.<\/p>\n\n\n\n<p>First you need to install the <a href=\"https:\/\/kadence-theme.com\/knowledge-base\/advanced\/how-to-add-a-custom-filter-or-function-with-code-snippets\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">code snippets<\/a> plugin. Then create a snippet and add the below code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nadd_filter( 'kadence_author_meta_output', 'custom_author_by_line' );\nfunction custom_author_by_line( $output ) {\nob_start(); ?&gt;\n&lt;span class=\"posted-by\"&gt;\n&lt;?php do_action('pp_multiple_authors_show_author_box', false, 'inline', false, true); ?&gt;\n&lt;\/span&gt;\n&lt;?php\nreturn ob_get_clean();\n}<\/code><\/pre>\n\n\n\n<p>Note: If the code above doesn&#8217;t work, replace the line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">&lt;?php do_action('pp_multiple_authors_show_author_box', false, 'inline', false, true); ?&gt;<\/code><\/pre>\n\n\n\n<p>The line should be replaced as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">&lt;?php do_action('pp_multiple_authors_show_author_box', false, 'ppma_boxes_9', false, true); ?&gt;<\/code><\/pre>\n\n\n\n<p>Where &#8216;<strong>ppma_boxes_9<\/strong>&#8216; is different for each site, and is found by looking at the plugin&#8217;s Author Boxes submenu heading, pictured below.<\/p>\n\n\n<style>.kb-image1083_afbe17-0e .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<figure class=\"wp-block-kadence-image kb-image1083_afbe17-0e\"><img loading=\"lazy\" decoding=\"async\" width=\"2508\" height=\"690\" src=\"https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp.png\" alt=\"PublishPress submenu headings\" class=\"kb-img wp-image-7668\" srcset=\"https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp.png 2508w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-300x83.png 300w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-1024x282.png 1024w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-768x211.png 768w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-360x99.png 360w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-1536x423.png 1536w, https:\/\/www.kadencewp.com\/help-center\/wp-content\/uploads\/sites\/14\/2020\/11\/pp-2048x563.png 2048w\" sizes=\"auto, (max-width: 2508px) 100vw, 2508px\" \/><\/figure>\n\n\n<style>.wp-block-kadence-spacer.kt-block-spacer-1083_7e9635-0b .kt-block-spacer{height:60px;}.wp-block-kadence-spacer.kt-block-spacer-1083_7e9635-0b .kt-divider{border-top-width:6px;border-top-color:var(--global-palette4, #2D3748);width:80%;border-top-style:solid;}<\/style>\n<div class=\"wp-block-kadence-spacer aligncenter kt-block-spacer-1083_7e9635-0b\"><div class=\"kt-block-spacer kt-block-spacer-halign-center\"><hr class=\"kt-divider\" \/><\/div><\/div>\n\n\n\n<p>Or, if you are using <a href=\"https:\/\/wordpress.org\/plugins\/co-authors-plus\/\" data-type=\"URL\" data-id=\"https:\/\/wordpress.org\/plugins\/co-authors-plus\/\" target=\"_blank\" rel=\"noreferrer noopener\">Co-Authors Plus<\/a> to create multiple authors you can use this code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nadd_filter( 'kadence_author_meta_output', 'custom_author_by_line' );\nfunction custom_author_by_line( $output ) {\n\tif ( function_exists( 'coauthors_posts_links' ) ) {\n\t\tob_start(); ?&gt;\n\t\t&lt;span class=\"posted-by\"&gt;\n\t\t&lt;?php coauthors_posts_links( ',&amp;nbsp;', '&amp;nbsp;&amp;&amp;nbsp;', 'By&amp;nbsp;', null, true ); ?&gt;\n\t\t&lt;\/span&gt;\n\t\t&lt;?php\n\t\t$output = ob_get_clean();\n\t}\n\treturn $output;\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using a plugin like PublishPress Authors to create posts with multiple authors. Or you just want to change the way authors are formated you can hook into the Kadence Theme to change the author HTML output using a custom filter. First you need to install the code snippets plugin. Then create a&#8230;<\/p>\n","protected":false},"author":1265,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[405],"doc_tag":[],"knowledge_base":[6],"class_list":["post-1083","docs","type-docs","status-publish","hentry","doc_category-theme-advanced","knowledge_base-kadence-theme"],"year_month":"2026-04","word_count":265,"total_views":"3925","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Ben Ritner","author_link":"https:\/\/www.kadencewp.com\/help-center\/author\/britner\/"},"doc_category_info":[{"term_name":"Advanced","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/theme-advanced\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"Kadence Theme","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/","term_slug":"kadence-theme"}],"knowledge_base_slug":["kadence-theme"],"taxonomy_info":{"doc_category":[{"value":405,"label":"Advanced"}],"knowledge_base":[{"value":6,"label":"Kadence Theme"}]},"featured_image_src_large":false,"comment_info":0,"_links":{"self":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/users\/1265"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":3,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1083\/revisions"}],"predecessor-version":[{"id":14019,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1083\/revisions\/14019"}],"wp:attachment":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_category?post=1083"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_tag?post=1083"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/knowledge_base?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}