vicchi
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Biographia] Instagram linksPlease read the plugin’s FAQ, specifically FAQ 14 and FAQ 15. You can add support for any social network or contact link you want to via the plugin’s
wp_biographia_contact_info
andwp_biographia_link_items
filters.-Gary
Forum: Plugins
In reply to: [WP Biographia] Short code in single.php not workingIt’s great that you’ve read the FAQ … a lot of people don’t. But I still don’t know all the other stuff that the plugin forum’s sticky thread asks for. Such as your WordPress version, the plugin version, your theme and so on.
I can’t seem to replicate this on my local testing install, so it might be a theme or other plugin not playing nicely with WP Biographia.
One thought does spring to mind though; the plugin supports adding the biography box to a single post out of the box. Is there any reason why this doesn’t do what you want it to do when using the single post template?
-Gary
Forum: Plugins
In reply to: [WP Biographia] Short code in single.php not workingHappy to help, but I’m not a mind reader; please read the sticky thread on the plugin’s forum (it’s there right at the top – https://www.ads-software.com/support/topic/wp-biographia-problem-or-question-please-read-this-first?replies=1) first so I can try and duplicate what you’re seeing, or rather not seeing.
-Gary
Forum: Plugins
In reply to: [WP Biographia] WP Biographia to home page – combine with other pluginSo I’ve got this working with both plugins out of the box on a clean, local, WordPress install.
The key thing to bear in mind is that WP Biographia uses two standard WordPress filter hooks,
the_content
andthe_excerpt
, to append or prepend the plugin’s Biography Box to the post’s content and excerpt respectively.As a result, using the List Category Posts plugin’s shortcode and specifying that you want each post’s excerpt or content included will work … along the lines of
[catlist name="news" numberposts=5 content="yes"]
or …
[catlist name="news" numberposts=5 excerpt="yes"]
… if you want both the excerpt and the content displayed, you’ll need to remove the filter hook for
the_excerpt
that WP Biographia uses so that the Biography Box doesn’t get appended/prepended twice, once for the excerpt and once for the content. The following code will do that for you …remove_filter('the_excerpt', array(WP_Biographia::get_instance(), 'insert'));
However, if you simply want the list of category posts and with no content or no excerpt, then the above approach won’t work for you as the List Category Posts plugin never uses the WordPress API calls
get_content()
orget_excerpt()
and thus the two filter hooks are never fired.It may be possible to do this via the List Category Post’s template support, but I haven’t tried this, yet.
-Gary
Forum: Plugins
In reply to: [WP Biographia] WP Biographia to home page – combine with other pluginTrying to pull the output of a plugin’s template tag (from WP Biographia) into the output of another plugin’s shortcode (List Category Posts) is not going to be easy, if it’s possible at all.
I’ve taken (an admittedly brief) look at the code for List Category Posts and there doesn’t appear to be any way to extend this plugin via the WordPress filter mechanism, which is what you’d need that plugin to do.
But I’m not sure that this is the right approach for what I think you want to achieve.
It sounds like what you really want is for WP Biographia to append its biography box to each post on a page which is comprised of the output of the List Category Posts plugin? If that’s the case, then this might be possible out of the box, albeit with some configuration tweaking.
Let me know if this is the case and I’ll see if I can get this to hang together with the other plugin.
-Gary
Forum: Plugins
In reply to: [WP Biographia] error when adding other social networksYou’re very welcome; glad to see it all got sorted for you.
-Gary
Forum: Plugins
In reply to: [WP Biographia] error when adding other social networksI think the problem is that you’re using multiple versions of the filters, one per contact link that you want to add and that’s confusing the plugin. If you batch up your contact links, as below, this should work (I’ve just tested this on my local install and it’s working fine for me)
if (!function_exists('add_custom_links') && !function_exists('display_custom_links')) { add_filter('wp_biographia_contact_info', 'add_custom_links'); function add_custom_links($contacts) { // contacts = array (field => array (field => field-name, contactmethod => description)) $custom = array( 'pinterest' => array( 'field' => 'pinterest', 'contactmethod' => __('Pinterest') ), 'tumblr' => array( 'field' => 'tumblr', 'contactmethod' => __('Tumblr') ), 'goodreads' => array( 'field' => 'goodreads', 'contactmethod' => __('Goodreads') ), 'amazon' => array( 'field' => 'amazon', 'contactmethod' => __('Amazon') ) ); return array_merge($contacts, $custom); } add_filter('wp_biographia_link_items', 'display_custom_links', 10, 2); function display_custom_links($links, $icon_dir_url) { // links = array (field => array (link_title => title, link_text => text, link_icon => URL) $custom = array( 'pinterest' => array( 'link_title' => __('Pinterest'), 'link_text' => __('Pinterest'), 'link_icon' => $icon_dir_url . 'pinterest.png' ), 'tumblr' => array( 'link_title' => __('Tumblr'), 'link_text' => __('Tumblr'), 'link_icon' => $icon_dir_url . 'tumblr.png' ), 'goodreads' => array( 'link_title' => __('Goodreads'), 'link_text' => __('Goodreads'), 'link_icon' => $icon_dir_url . 'goodreads.png' ), 'amazon' => array( 'link_title' => __('Amazon'), 'link_text' => __('Amazon'), 'link_icon' => $icon_dir_url . 'amazon.png' ) ); return array_merge($links, $custom); } }
Note that I haven’t included your
website
link … this is already part of the standard set of contact links that appear in the user’s profile (with a key ofweb
in theuser_contactmethods
filter’s arguments) so it looks to me like this is just duplicating what’s already in WordPress. If you do need a secondary website link, then you can just (re)add the applicable entries to both filter hooks.-Gary
Forum: Plugins
In reply to: [WP Biographia] error when adding other social networksThere’s a syntax error in the second call to
add_filter
in the code you’ve used (this is a documentation error in the current version of the plugin; it’s fixed in the plugin’s documentation and will be fixed in thereadme.txt
for the next version of the plugin). The syntax should be …add_filter($tag, $function, $priority, $accepted_args);
… but your code is missing the
$priority
argument, so if you correct it to …add_filter('wp_biographia_link_items', 'add_pinterest_link', 10, 2);
… it should work.
I’m not quite sure what you mean by
Also, I’m not able to get the author box to show up in the sidebar, unless I put in the widget
The plugin’s widget is designed to be put into the sidebar; I don’t follow what you mean by the Biography Box (author box) not showing up? Is the widget showing in the sidebar at all, or are there sections of the Biography Box not showing up in the widget’s output?
-Gary
Forum: Plugins
In reply to: [WP Biographia] author contact info not displaying,displaying incorrectly.@ noahmitchellenterprise.com – Please open a new support thread – this one is resolved and not related to the social author bio plugin – and also take a look at the sticky thread on the plugin’s forums … I’ll need a bit more information to help you.
-Gary
Forum: Plugins
In reply to: [WP Biographia] Creating a custom field for WP BiographiaAs far as I know you can’t and WordPress doesn’t support this. In addition to custom post/page taxonomies, WordPress supports taxonomies on categories, tags and links. In other words, taxonomies are supported for post/page metadata and for link (blogroll) metadata, but nowhere else in the WordPress core.
The custom fields one can add to a user’s profile (and which is the mechanism WP Biographia uses to implement additional contact fields) are simply additional name/value pairs associated with the profile. There’s no support in WordPress or in WP Biographia for making them taxonomies.
-Gary
Forum: Plugins
In reply to: [WP Biographia] Creating a custom field for WP BiographiaIf you mean adding additional fields to a user’s profile, then take a look at the
wp_biographia_contact_info
andwp_biographia_link_items
filters. This will allow you to add one or more contact fields to a user’s profile and then have them as part of the plugin’s Biography Box.Hope this helps.
-Gary
Forum: Plugins
In reply to: [WP Biographia] Author Image problems (I've checked the whole forum)Check the contents of your
/wp-content/uploads
directory. The image your theme (or whatever plugin is emitting the HTML for the author image) is trying to load just isn’t there. From looking at that directory (which I probably shouldn’t be able to do on a site by the way) there’s no image that looks like it might be the correct one so I surmise that it just hasn’t been uploaded to your web server.-Gary
Forum: Plugins
In reply to: [WP Biographia] Author Image problems (I've checked the whole forum)No worries. But I’d take a look at the images you’re serving up for your authors. On https://www.upstream.co.uk/blog/author/nick/, the site is trying to serve https://www.upstream.co.uk/blog/wordpress/wp-content/uploads/author/author_pic_nick_taylor.jpg, which doesn’t exist. Check the developer console in whatever browser you’re using and you’ll see the error message.
-Gary
Forum: Plugins
In reply to: [WP Biographia] Author Image problems (I've checked the whole forum)I’ve just checked the links you’ve cited and apart from the fact that the URL for the image that is being used for Nick 404s, you also aren’t using WP Biographia to create the Biography Box on those pages.
Sorry, but I don’t see that this is a plugin problem, or if it is, it’s not a problem with WP Biographia. Unless I’m missing something?
-Gary
Forum: Plugins
In reply to: [WP Biographia] WordPress 3.7Update … Got it and fixed it. It looks like there was a change in category behaviour in WP 3.7 (via this change set https://core.trac.www.ads-software.com/changeset/25662/) that, coupled with the plugin not detecting an empty set of category exclusions, meant that post WP 3.7 upgrade, all posts were considered to be excluded by category.
If you’re not interested in the guts of this, I’ve fixed the bug and/or coded around the 3.7 change in category handling and pushed v3.3.2 of the plugin to the plugin repository.
If you are interested in the details, this is the comment I added to the plugin’s source as a result of detecting an empty set of category exclusions …
It looks like the behaviour of
in_category()
has changed in WP 3.7. Prior to this release a call toin_category()
with an empty$category
argument returnedfalse
(due to PHP’sexplode
returning an array with a single empty element ifwp_biographia_category_exclusions
was set to ”), but after upgrading to WP 3.7,in_category()
now returnstrue
in this case, which effectively means every single post is excluded from displaying the Biography Box. Not good. So now, check whether this option is empty and then only check for category exclusions if there’s at least one category configured for exclusion.You could argue that this was a bug waiting to happen if you’re being uncharitable. I’d tend to agree with you.
-Gary