Title: Author info
Last modified: August 30, 2016

---

# Author info

 *  Resolved [hajdarovic](https://wordpress.org/support/users/hajdarovic/)
 * (@hajdarovic)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/)
 * Is there any way to add author name to the article title?
 * [https://wordpress.org/plugins/dk-pdf/](https://wordpress.org/plugins/dk-pdf/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664624)
 * Hi hajdarovic,
 * I don’t undestand your question, can you elaborate this a little more? thanks.
 * Best.
 *  Thread Starter [hajdarovic](https://wordpress.org/support/users/hajdarovic/)
 * (@hajdarovic)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664625)
 * How can we add author name to the title?
    Like this:
 * “This is the title of article” by Miljenko Hajdarovic
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664630)
 * Hi hajdarovic,
 * Your question is related to DK PDF plugin?
    If yes, please post a URL and the
   steps to reproduce the problem, thanks.
 * Best.
 *  Thread Starter [hajdarovic](https://wordpress.org/support/users/hajdarovic/)
 * (@hajdarovic)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664631)
 * Yes DK PDF…
    Well in options for that plugin you have that we can have Title.
   It would be great to have “title” by someone.
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664633)
 * I get it! 🙂
 * the first thing you’ve to do is copy dk-pdf/templates/dkpdf-header.php to your
   theme (or child theme) in a folder named ‘dkpdf’
    more info here: [http://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/](http://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/)
 * then you can modify this template, if you want to show the author name, change
   this (line 43):
    `echo get_the_title( $post->ID );`
 * for this:
 *     ```
       if ( have_posts() ) : while ( have_posts() ) : the_post();
       echo get_the_title( $post->ID ) . ' by ' . get_the_author();
       endwhile; else:
       endif;
       ```
   
 * Do it and tell me if it works, thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Author info’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/author-info-2/#post-6664633)
 * Status: resolved