• The Author name for blog articles shows correctly in print or pdf preview using a desktop but shows as “By undefined” when using my iPhone for both printer or pdf previews.

    I want the Author name to show no matter what device is used. How do I correct this?

    My email address is: [email protected]

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi @mfaremou, sorry to hear about that error. That sounds pretty weird.

    Can you point me to the domain name of the website where you have PMB installed? That will allow me to gather some more info to figure out what’s going wrong.

    Thread Starter Mike Faremouth

    (@mfaremou)

    Website domain is easllc.co

    Go to the Blog tab and select one of the articles on your mobile phone for print or pdf and you’ll see that the Author’s name (me) is undefined.

    Thanks!

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @mfaremou, I see it’s because the technology Print My Blog depends on, the WP REST API (previously knowns as WP JSON API) isn’t showing users on your site. Eg https://easllc.co/wp-json/wp/v2/users says the website isn’t listing users publicly.

    You probably have a security plugin with a setting that disables the REST API from listing users. That’s usually a pretty good security precaution, especially when you have no need for showing users over the WP REST API… but Print My Blog does, so that security setting prevents it from doing its job properly as you can see.

    So, what are your options?

    1. Enable the WP REST API in your security plugin. I have a FAQ that mentions where this is for several security plugins. If you can’t find where to do that, tell me which security plugin you’re using and I can try to find that setting. This of course reduces security a bit because it makes it easier for a hacker to list all users’ usernames (so now all they need to hack into your site is the password). Most sites have this enabled by default, considering the gain in functionality (eg plugins like Print My Blog can exist) more important than the decreased security (because hackers no longer need to discover usernames, only passwords).
    2. If you prefer to not do that, you can have Print My Blog not display the author’s name. To do that, go to your WordPress admin dashboard, under “Print My Blog”, click “Settings”, then “Customize BUttons”, then under each format you’re showing, click “Show Options”, then under “Post Content to Print” UNcheck “Author” and save.

    Does that all make sense?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author name not showing in mobile print or pdf preview.’ is closed to new replies.