Title: [Plugin: WPBook] Problem With Attribution Line
Last modified: August 19, 2016

---

# [Plugin: WPBook] Problem With Attribution Line

 *  Resolved [iwingmusic](https://wordpress.org/support/users/iwingmusic/)
 * (@iwingmusic)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/)
 * The Attribution Line strings didn’t show up correctly.
 * Screenshot: [http://www.edwinraja.com/attribline.jpg](http://www.edwinraja.com/attribline.jpg)
 * Thanks.

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

 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670201)
 * [@iwingmusic](https://wordpress.org/support/users/iwingmusic/) – those strings
   are not currently available for substitution in the attribution line – %category%
   and %tags% work in the custom header and footer section, but the attribution 
   line doesn’t parse all the same tags.
 * Guess we’ll add the ability to use all the same strings used in the custom header
   in the attribution line as a feature request
 *  Thread Starter [iwingmusic](https://wordpress.org/support/users/iwingmusic/)
 * (@iwingmusic)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670226)
 * [@johneckman](https://wordpress.org/support/users/johneckman/) Ok thank you very
   much. So I could only set the strings to %author% or %blog% for now?
 * Regards.
 *  Plugin Contributor [B.](https://wordpress.org/support/users/bandonrandon/)
 * (@bandonrandon)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670259)
 * [@iwingmusic](https://wordpress.org/support/users/iwingmusic/) That is correct
   you can only use %blogname% and %author% for now.
 * [@johneckman](https://wordpress.org/support/users/johneckman/), Maybe we should
   add some more but not have as many as header/footer. Maybe limit it to only grabbing
   the first tag/cat and not allowing the %comments% link.
 *  Thread Starter [iwingmusic](https://wordpress.org/support/users/iwingmusic/)
 * (@iwingmusic)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670280)
 * [@bandonrandon](https://wordpress.org/support/users/bandonrandon/) Thank you.
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670475)
 * @johnneckman
    %author% is not working for me. It is currently showing a blank.
   see. facebook.com/nthdegreecpas for example. Have you heard of this happening
   before?
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670476)
 * [@guitarthrower](https://wordpress.org/support/users/guitarthrower/) – I haven’t,
   and I’m not seeing it at the link you provided.
 * Can you point to a specific post, and where you used %author%?
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670477)
 * This is a post on our blog. [http://www.nthdegreecpas.com/headline/track-your-refund-theres-an-app-for-that/437/](http://www.nthdegreecpas.com/headline/track-your-refund-theres-an-app-for-that/437/)
 * When it posts to Facebook, I would expect to see this:
    Nth Degree CPAs Jayson
   Wiser‎, Nth Degree CPAs, PLLC
 * But instead I see this:
    Nth Degree CPAs ‎, Nth Degree CPAs, PLLC
 * The author shows in the post section of the admin view, but it’s not in the css
   of the blog for the post. Could this be why?
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670478)
 * When you say “When it posts to Facebook” you mean the excerpt that gets posted
   to your wall? (as opposed to the canvas page).
 * In other words, you mean where it appears on your wall here:
    <[http://www.facebook.com/NthDegreeCPAs&gt](http://www.facebook.com/NthDegreeCPAs&gt);
 * Rather than where it appears here:
    <[http://apps.facebook.com/nthdegreecpas/headline/track-your-refund-theres-an-app-for-that/437/&gt](http://apps.facebook.com/nthdegreecpas/headline/track-your-refund-theres-an-app-for-that/437/&gt);
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670479)
 * So I think the issue is that when publish_to_facebook() gets called, it isn’t
   being called from inside the loop, therefore it has no context by which to get
   the current posts author.
 * Let me look for another function we can use instead.
 * You may need to ‘hard code’ author info in the meanwhile into your attribution
   line.
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670480)
 * Yes, thanks for clarifying that. When it posts to the wall, I was expecting to
   see the author name.
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670481)
 * It would be nice to have the author pull automatically, as there are three of
   us that create posts. Let me know what you find out.
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670482)
 * Actually it’s more simple – typo in a function.
 * wpbook.php, line 975, you’ll find:
 *     ```
       if($author='')
       ```
   
 * That should be:
    `if($author == '')`
 * (The old “assignment versus evaluation” problem).
 * It’s fixed in trunk, will be in the next release.
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670483)
 * I made the change, then created a new post, but no change on the wall…
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670484)
 * Fixed now, if you want to grab latest dev version – or you can wait on the release.
 * Change Line 48 in wpbook/includes/publish_to_facebook.php to:
 *     ```
       $message = wpbook_attribution_line($wpbook_attribution_line,$my_author);
       ```
   
 *  [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * (@guitarthrower)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670485)
 * Works like a charm!
 * Thanks for you help and quick response time!

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

The topic ‘[Plugin: WPBook] Problem With Attribution Line’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpbook_eeeeee.svg)
 * [WPBook](https://wordpress.org/plugins/wpbook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpbook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpbook/)
 * [Active Topics](https://wordpress.org/support/plugin/wpbook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpbook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpbook/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [guitarthrower](https://wordpress.org/support/users/guitarthrower/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-problem-with-attribution-line/#post-1670485)
 * Status: resolved