WordPress.org

Ready to get started?Download WordPress

Forums

CleanPrint
[resolved] how to print the name of author and posting date (6 posts)

  1. light7
    Member
    Posted 7 months ago #

    Dear CleanPrint users

    I want to print the name of author and the posting date by using CleaPrint.

    But, CleanPrint only prints the title.

    Is there any way that I can print also the name of author and the posting date, which are located under the tile ?

    Thanks

    http://c4sjn.com/

    http://wordpress.org/plugins/cleanprint-lt/

  2. johncadams
    Member
    Plugin Author

    Posted 7 months ago #

    CleanPrint uses a variety of methods to locate the byline and dateline of the article but at times it misses. In which case the elements can be easily marked to guarantee CleanPrint sees them:

    <div class="cleanprint-byline>AUTHOR</div>
    <div class="cleanprint-dateline>DATE</div>

    Refer to the FAQ for more tagging options.

  3. light7
    Member
    Posted 7 months ago #

    Dear johncadams

    I pasted above code into cleanprint, but that didn't work.
    This prints Author: and Date:, but it missed detail information about Author & Date.

    In addition, this code even put the "Date: Author:" on the top of homepage.

    What I want is to place the byline and dateline of the article under the tile as follows.

    Title: ***
    author: ***
    date: *** ***.com
    --------------------------------------------------

    article ~~

    Could you give some comments or another codes?

    Thanks

    light7

  4. lucascolin
    Member
    Plugin Contributor

    Posted 7 months ago #

    Hi Light7,

    There is more information on your question here http://www.formatdynamics.com/cpconfig/

    As a general rule you can add the class name "cleanprint-include" to elements you want to include in your print out and add "cleanprint-exclude" to any elements you dont want to include.

    does that work?

  5. light7
    Member
    Posted 7 months ago #

    lucascolin

    That code works.

    <div class="cleanprint-byline">By Action Reporter</div>

    When I put the above code on Cleanprint, and I clicked the Cleanprint button to get PDF file, I can see "By Action Reporter" from the PDF file.

    But there is an another problem.
    When I put the following code on Cleanprint, even it was displayed on the top of homepage.

    Thanks.

  6. johncadams
    Member
    Plugin Author

    Posted 7 months ago #

    You need to use this class tagging approach in your posts where there is an author. Not on every page.

Reply

You must log in to post.

About this Plugin

About this Topic