[Resolved] change WP Biographia position
here’s my problem: on my website I want to change the biography position and set it under the social buttons.
How can I do this?
Look under the Admin tab in the plugin’s settings; if you tweak the
the_contentpriority settings you should be able to make WP Biographia’s
the_contentfilter hook fire later than your social buttons plugin’s
the_contentfilter hook, thus positioning the Biography Box under the social buttons.
Unfortunately it doesn’t work. I set it even on 2 but the biography is still above the social buttons (the Jetpack ones).
OK. I see what the problem is now … there’s two points I want to make here …
1. You didn’t tell me what plugin you were using to create your social buttons on your site, so I made the assumption that whatever plugin you were using was hooking into
the_contentat priority 10, which is the WordPress default. Now that I know you’re using Jetpack this makes life easier. This is the reason I wrote the WP Biographia Problem Or Question? Please READ This First post on this forum and made it sticky. If I’d have known that you were using Jetpack for your social button I could have given you a more precise answer immediately, rather than having to make certain assumptions about your environment.
2. As I said in my previous reply Look under the Admin tab in the plugin’s settings. There’s some help text there, just above where you change the Content Filter Priority that says this …
A lower priority will cause the plugin’s filters to fire earlier. A higher priority will cause the plugin’s filters to fire later.
By setting your
the_contentfilter priority to 2 you’ve ensured that the Biography Box
the_contentfilter hook will fire almost at first level of priority. You don’t want to decrease the priority, you want to increase the priority, as the plugin’s help text says.
Now that I know that you’re using Jetpack, I can see from the source code that Jetpack fires the
the_contentfilter for social buttons at priority 19. So you’ll need to set your WP Biographia
the_contentfilter priority at a number at least 1 higher than 19. On my test site, I’ve set this to 20. Take a look at this post – http://test.vicchi.org/2012/09/24/map-wars-are-apples-maps-really-that-bad/ – you can see that the social buttons from Jetpack now appear before WP Biographia’s Biography Box, which is, I believe, what you want to achieve.
Apologies if I sound tetchy or snarky in this reply, but I support WP Biographia in my spare time and have spent quite a bit of time and effort trying to make the support process as easy for me and for you as I possibly can; that’s the reason that there’s a reasonably large set of FAQs for the plugin and that’s the reason why I wrote the sticky post for the forums, so we can get to the end result that we both want as quickly as possible, and that’s to get your site working the way you want it.
I dit it! Finally it works as I want 😀
Can I say that I love you? 😀
Thank you very much Gary!
Can I say that I love you? 😀
Yes you can! I no longer sound tetchy or snarky. Glad you were able to get the result you wanted.
Hi Gary. Thought I’d add this here instead of starting a new thread. I’m having trouble with placement as Fjonka did. For reference, we spoke earlier this year in this thread, and the site in question is here. Using WordPress 3.4.2 and just updated to Biographia 3.3.0 with a Wootheme, if that makes any difference. I saw that there were a couple settings for Woo, but they don’t seem to apply to our installation. Settings-wise, we’re pretty much default installation.
We’ve been using shortcode specified in the previous thread, specifically
<?php echo do_shortcode('[wp_biographia]') ?>since we’re pulling the code outside the loop. As soon as I upgraded to 3.3.0, the single posts won’t load on the site. It just keeps trying to load with no success and none of the page rendering. Left it for ~5 minutes with no apparent success. I tried on different computers with different browsers and the problem persisted unless I deactivated the plugin or deleted the shortcode from single.php. Shortcode on our About page is still working fine.
I switched to general installation and it’s working, but as Fjonka, we’d like to pull the box back down the page under the share buttons (hard-coded AddThis, not Jetpack) and nRelate plugin links. I attempted the solution above, but decreasing the priority incrementally to 100 didn’t budge it. I just tried the variation
<?php echo do_shortcode('[wp_biographia mode="configured"]') ?>from the notes on the plugin page, but had the same problem.
Any idea what we can do? Any help you can provide would be appreciated.
Hi Matt … which theme is it you’re using? Is it publicly downloadable or is it premium/paid for.
In the meantime, rather than the (slightly hacky) call to
do_shortcodeyou might want to try the
wpb_the_biography_boxtemplate tag which is new in v3.3.0 to see if that has any effect. See http://wordpress.org/extend/plugins/wp-biographia/other_notes/ or http://www.vicchi.org/codeage/wp-biographia/6-template-tags/ for documentation.
When you say the share buttons are hard-coded, where does this happen? In your theme’s templates?
I think I’ll need to see the theme itself, plus any customisations you’ve made to really work out what’s going on here.
Using Continuum. Paid, sadly. Just tried
<?php wpb_the_biography_box ($mode, $user, $prefix, $name, $role, $type, $order); ?>and had the same results. Eternal loading, nothing rendered. Even tried
<?php if (function_exists('wpb_the_biography_box')) wpb_the_biography_box ($mode, $user, $prefix, $name, $role, $type, $order); ?>. Still nothing.
I’m not sure what to suggest. If I understand you correctly, you had a call to the plugin’s shortcode embedded in your theme’s
single.phptemplate. Prior to v3.3 it worked. Post v3.3 it hangs.
If you fall back to one of the WordPress stock templates it works with v3.3 (my reading of you saying switched to general installation).
You haven’t said whether there’s been any other theme or plugin upgrades around the same time.
Without being able to replicate this on my local testing installation, there’s not a lot else I can do here. As I hope you appreciate, I can’t pay for a premium theme just for testing purposes.
I hate to say it but I think we’ve hit a brick wall …
I totally understand. We’re gearing up for a redesign, and since this seems to be related to the (extensively modded) theme that we’re hoping to get rid of fairly soon, we’ve decided to drop back to the previous version of the plugin for the time being. Don’t want us (or you, especially) putting time and energy into an anomalous, short-term problem.
Thanks for the plugin and for being so responsive!
- The topic ‘[Resolved] change WP Biographia position’ is closed to new replies.