• Resolved Caleb Weeks

    (@calebweeks)


    Hi Gary,

    I am more than impressed with your attention to detail via responses on this forum and also in posts on your site.

    Forgive me if I am duplicating a question or happened to overlook something in the Bending WP Biographia To Your Will; A Configuration Guide?– I did my best to check both out. I did read the Topic WP-Biographia placement and quirks and recognize that #3 listed in that Topic relates to my question but I didn’t entirely understand it, so I am asking here.

    I am using the AddThis Social Sharing plugin and in it’s settings I select the option for the sharing tools to display below the post. I also have WP-Biographia set to display after the post or page content.

    By default, the social sharing icons appear below the WP-Biographia box. Do you have an idea how I might change this so that the sharing icons appear before the author box?

    Thanks for your replie(s) when able. Anything is much appreciated – thanks, Gary.

    https://www.ads-software.com/extend/plugins/wp-biographia/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author vicchi

    (@vicchi)

    Hi,

    So I think that the solution to what you’re asking is found in the filter priority that both WP Biographia and AddThis use to add additional content after the post content.

    Both plugins use add_action/add_filter to hook into the WordPress the_content filter. WP Biographia does this in /wp-plugin-base/wp-plugin-base.php at line 27, called from wp-biographia.php at line 136. AddThis does this in addthis_social_widget.php at line 90.

    By default, both plugins hook the_content at the default priority of 10; this means that the order of the plugin’s content being appended your post content is done on a first come, first served basis, dependent on which plugin effectively got there first (usually this is alphabetical but there are other factors which can affect this).

    AddThis doesn’t allow you to tweak the the_content filter priority but WP Biographia does. This is documented in the Advanced Settings section of Bending WP Biographia To Your Will, though you may not have realised it; the post says this …

    Finally, the plugin uses the standard WordPress the_content and the_excerpt filters to add the Biography Box to your posts and pages, either at the start or at the end of the content. As this is a standard WordPress feature, you may find other plugins and/or themes do exactly the same thing, which means that if you have multiple additions to a post or a page via this mechanism you may not end up with the additional content in the order you want. The Content And Excerpt Priority Settings allows you to adjust the filter priority to get the order you really want; a lower priority means the plugin’s filters will fire earlier, thus bumping them up the order in which the additional content is added, a higher priority will fire later, with the opposite effect.

    From the behaviour you’ve described, it sounds like changing the the_content filter priority (and possibly the the_excerpt filter priority as well, depending on your site’s theme) to a value higher than the default value of 10 will do what you want. You may need to play around with the precise value of the filter priority, but I’d start with priority 11 and see if that has the desired effect. This should (fingers crossed) make WP Biographia append the Biography Box later than AddThis, effectively making the Biography Box appear after the output of AddThis.

    Let me know how you get on.

    -Gary

    Plugin Author vicchi

    (@vicchi)

    Hi Caleb … how did you get on with this? Any update?

    -Gary

    Thread Starter Caleb Weeks

    (@calebweeks)

    Yup – Gary, you came through for me like I’ve seen you do for so many – thank you!

    I posted and had a reply the next day. You taught me what it was, where to look, and gave the “why” it worked like that, even in relationship to another plugin (AddThis).

    Then, you followed up 3 days later just to see and check in with me about it. How cool is that!

    It took me another 2 days to get back to it, so I appreciate your patience.

    Believe it or not, upon first read of your reply, I thought I would have to get into the php code (and did at first), but then realized it was in the Admin Tab of the plugin’s settings?– you completely anticipated our desire to customize this and so you “built it in” – way cool. I completely missed that.

    I didn’t realize how simple you made the whole process when I first was using the plugin. The Admin Tab of the Plugin settings has the field right there. Even though I read it in the settings and again in the Bending WP Biographia To Your Will, I didn’t understand (for whatever reason).

    I have no suggestions on any change on your end?– now that I see it, it is utterly clear. I appreciate your patience explaining to me what is clearly described in the two places.

    5 stars for both Gary and the plugin. Thanks, Gary. I hope you have a great day.

    Thread Starter Caleb Weeks

    (@calebweeks)

    p.s. I went up to 16 for the Content and that put it below the AddThis plugin stuff. Great!

    Plugin Author vicchi

    (@vicchi)

    Hi Caleb,

    Wow. Thanks for that reply. It’s reading comments like yours that makes me want to keep the plugin updated and keep an eye on the forums. Thank you so much. As we sometimes say in the UK, I’m totally chuffed to bits!

    -Gary

    Thread Starter Caleb Weeks

    (@calebweeks)

    Delighted to hear and I feel exactly that way – you save us hours by using your expertise to code up something like WP Biographia. And then to support us on top of that?! I feel like a public, “Thank you” is completely appropriate when I find the gratitude in my heart for the way you publicly support and help us understand use and functions.

    As they say in my home state of Colorado (though I’m now in Tennessee), “Right on!”. ??

    Thanks again, Gary.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP Biographia] Location of the box’ is closed to new replies.