WordPress.org

Ready to get started?Download WordPress

Forums

WP Biographia
[resolved] wp_biografia shortcode not parsed (22 posts)

  1. blig
    Member
    Posted 2 years ago #

    Hi, i've just started using your plugin.

    I am trying to use the wp_biografia shortcode to show a list of authors on my blog and following your instructions i put this in a page:
    [wp_biographia author="*"]

    I have inserted it from the wywsiwyg editor and then as simple html but it still doesn't show up. Have you got any hint-suggestion?

    http://wordpress.org/extend/plugins/wp-biographia/

  2. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi. What version of WordPress and of WP Biographia are you running? I've just put together a test page showing the short code running in author mode, which has the following code:

    Test markup page to show the WP Biographia short code running in user wildcard mode.
    <h3>Shortcode - No Overrides</h3>
    [wp_biographia author="*"]
    <h3>Shortcode - Prefix Override</h3>
    [wp_biographia author="*" prefix="About"]

    ... you can see this running at http://test.vicchi.org/contributors/ ... it should work regardless of whether you use WYSIWYG mode or HTML mode to put the page together.

    -Gary

  3. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    ... and here's an example "in the wild" thanks to Steve Krause at http://www.groovypost.com/staff/

    -Gary

  4. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    @blig ... any progress on this issue on your side?

    -Gary

  5. blig
    Member
    Posted 2 years ago #

    @gary: The shortcode i was using is actually correct, so i dont' know what was the problem at the beginning. Now it just works (wp 3.3.1 - biografia 2.3).

  6. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    (scratches head) ... that's odd, but at least it's working for you now, which is the main thing. If this happens again then please let me know and we'll see if there's something we can track down.

    -Gary

  7. Roopos
    Member
    Posted 2 years ago #

    Hello Gary
    First of all, thanks a lot for this very good plugin
    I have a website with many members
    I want to present all the authors on a same page with their WP biographia box
    When I use this short code [wp_biographia author="*"] this is all the registered membres of my site who appear and not only the authors. Is there something to do ?
    Thanks !

  8. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin currently users the terms user and author interchangeably and assumes that if you have a user account on a WordPress blog then you have the right to post there, so [wp_biographia author="*"] will, as you point out, pick up all users (registered members).

    For now, there's a workaround. In the plugin's settings/options explicitly exclude those registered users that you don't consider to be authors and use the shortcode in configured mode, along the lines of [wp_biographia author="*" mode="configured"].

    But you've also pointed out a good use case here that's lacking in the plugin ... support for WordPress Roles ... I think the addition of another configuration option for roles as well as adding another parameter to the shortcode, along the lines of [wp_biographia author="*" role="author"] would be a useful addition.

    I'll get this into the next version of the plugin ... probably sometime towards the end of the week.

    In the meantime, let me know if the workaround works for you.

    -Gary

  9. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    I've added support to the [wp_biographia] shortcode for a role attribute, where role is one of administrator, editor, author, contributor or subscriber. This only works when used in conjunction with the author attribute in wildcard mode, along the lines of ...

    [wp_biographia author="*" role="author"]

    This will be part of v3.1.0 of the plugin, but it's not on the WordPress plugin repository yet. But in the meantime, if you want to get hold of this, you can grab the latest version of the plugin from GitHub. Just drop this version of the plugin into /wp-content/plugins/wp-biographia.

    -Gary

  10. Roopos
    Member
    Posted 2 years ago #

    @Gary
    Thanks so much for your answer and for your help !!!

    I droped the new version of the .php file via FTP, everything works perfectly when i had [wp_biographia author="*" role="author"] shortcode on my page : only the authors are displaid !

    I have just an issue with the box format. The bio description is displaid on one single line and not like a paragraph (this is wired because on my other posts it works fine).
    Any idea on how to fix that (I suppose it is a CSS issue?)
    If i can resolve this styling issue, it will be perfect then ! WP Biographia will answer to all my needs

    Sorry I am not a developper, neither a webdesigner... Thanks so much again for your help !
    Best regards
    Julien

  11. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    @Roopos ... can you provide a URL for where this is happening and I'll take a quick look at the CSS ...

    -Gary

  12. Roopos
    Member
    Posted 2 years ago #

    @Gary
    My site is under maintenance i just reopen it for you ! Tell me when you are done ;)

    Here the page where I list all the authors of my blog... Some of them need to fill there bio but you have two examples where the bio does not dissplay properly

    http://www.travel-vox.com/les-auteurs-du-blog-et-de-we-travel/

    Maybe it is a theme issue ?

    Thanks
    Roopos

  13. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    @Roopos - Sorry but I've only just had a chance to look at this and I can see your site has gone back into maintenance mode ... any chance you can open it up tomorrow (I'll be busy on other things all day today) ... ?

    -Gary

  14. Roopos
    Member
    Posted 2 years ago #

    Hi Gary,
    No problem
    My website is now online

    You can check the CSS if you want (and have enough time of course) :
    http://www.travel-vox.com/les-auteurs-du-blog-et-de-we-travel/

    I would have also another request finally...
    I would like to use informations from WP Biographia in my author page :
    http://www.travel-vox.com/author/admin/
    I would like to display Facebook and twitter details that are stored in WP Biographia plugin.
    Do you know how I can edit my author.php (I guess I have to add some information from WP biographia but don't know which lines...)

    Thanks so much again Gary for your precious help !!

    Roopos

  15. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    So I've just taken a quick look at this ...

    You can check the CSS if you want (and have enough time of course) :
    http://www.travel-vox.com/les-auteurs-du-blog-et-de-we-travel/

    It looks like you've enclosed each of the shortcodes within pre tags ... this is probably what's causing the text not to wrap as you're telling the enclosed content, including the <p> tags that enclose the biography text, that the formatting is as you want it to be.

    I would have also another request finally...
    I would like to use informations from WP Biographia in my author page :
    http://www.travel-vox.com/author/admin/
    I would like to display Facebook and twitter details that are stored in WP Biographia plugin.
    Do you know how I can edit my author.php (I guess I have to add some information from WP biographia but don't know which lines...)

    ... not quite sure what you mean by this. Do you want another Biography Box to be displayed for that author's page (like I have here: http://www.vicchi.org/author/gary/) ... or that you want to extract specific fields from the user's profile (which are added by WP Biographia) and display them in the author template in some way?

    -Gary

  16. Roopos
    Member
    Posted 2 years ago #

    Hi Gary

    thanks so much for your precious help

    You were right, there was pre tag in the HTML editor. i do not know how they appeared, but I removed them and everything displays perfectly. Thanks a lot my friend

    Regarding my second answer, sorry if I were not clear enough (english is not my native langage)
    Your second sentence is exaclty what I need : I want to extract specific fields from the user's profile (which are added by WP Biographia) and display them in the author template in some way (on author.php) ! is it possible ?

    Thanks again !

    Roopos

  17. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    You were right, there was pre tag in the HTML editor. i do not know how they appeared, but I removed them and everything displays perfectly. Thanks a lot my friend

    ... glad that's sorted out.

    Regarding my second answer, sorry if I were not clear enough (english is not my native langage)
    Your second sentence is exaclty what I need : I want to extract specific fields from the user's profile (which are added by WP Biographia) and display them in the author template in some way (on author.php) ! is it possible ?

    ... no need to apologise; your English is way way better than my French :-)

    So what you are asking for is easily done, but it requires a little bit of PHP code to use the WordPress API to do this.

    Basically, all of the additional profile fields (Facebook, Twitter, etc) that the plugin adds to the user profile are stored as part of the user profile in the wp_usermeta table in the database, not as part of the plugin itself. This means that you can use the standard WordPress API calls that act on the user profile to access them (it does also mean though that these fields will go away if the plugin is deactivated or uninstalled).

    Firstly you'll need to get the User ID you need.

    If you want the ID of the currently logged in user, you can call get_currentuserinfo() (http://codex.wordpress.org/get_currentuserinfo) and then use the global $user_ID.

    If you're in the WordPress Loop and you want the user ID of the author who wrote the current post or page, you can use the global $post and get the user ID via $post->post_author.

    If you know the login name of the user, you can call get_user_by() (http://codex.wordpress.org/Function_Reference/get_user_by) passing the login name along the lines of get_user_by ('login', $login_name).

    Once you have the user ID you want, you then just use the get_user_meta() API call to return the profile item you want. The names of the items that the plugin adds are all lowercase and should be self explanatory, so Facebook is facebook, Twitter is twitter and so on.

    So assuming you have your user ID in a variable called $user_ID and you want the Facebook profile URL for this user, you'd do something like ...

    $facebook_url = get_user_meta ($user_id, 'facebook', true);

    ... there's a lot to take in here, especially if you're not familiar with the WordPress API; let me know how you get on and if you need any help.

    -Gary

  18. Roopos
    Member
    Posted 2 years ago #

    Perfect Gary !
    Thanks again for these good explanations ! Thanks to you I can understand better how Php and wordpress works !
    A friend of mine helped me and we followed your instructions, everything works.

    PS : One of my author asked me for something that may interest you in the next version of WP Biographia : maybe you could add a Pinterest option in the social links, as this social networks is more and more popular

    thanks again for your precious help

    best regards

    Roopos

  19. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Take a look at FAQ #13 which answers your question about Pinterest perfectly. This was the main reason I wrote v3.0 of the plugin; there's so many social networks out there that people might want the plugin to support that building more and more of them into the plugin isn't scaleable and would soon make the plugin's settings unmanageable.

    But if you then take a look at FAQ #14, you'll see that the filters I've built into v3.0 of the plugin are specifically designed to support your author's request. Indeed there's a working example of how to do this ... for Pinterest. You'll need to look at the documentation for the wp_biographia_contact_info and wp_biographia_link_items filters here.

    I wrote all of that documentation for a reason you know ... :-)

    -Gary

  20. Roopos
    Member
    Posted 2 years ago #

    Ok Gary, I understand !
    thanks for that tutorial I will set up Pinterest
    Best regards and thanks again for all your advices ! You are perfect
    Julien

  21. Roopos
    Member
    Posted 1 year ago #

    Hello Gary
    I hope you're alright
    I have a problem with my author page since a few days : http://www.travel-vox.com/les-auteurs-du-blog-et-de-we-travel/

    i va got this message when righting the shortcode you gave me to let appear all the authors of my blog [wp_biographia author="*" role="author"] :
    Fatal error: Out of memory (allocated 102760448) (tried to allocate 16000 bytes) in /homepages/26/d365825748/htdocs/FR/wp-includes/media.php on line 258

    Any idea how to fix this ? (I just upgraded my host package a few weeks ago, any problem of memory with other plugins... maybe the shortcodes has changed since the last versions)

    Thanks a lot !!

  22. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    I very much doubt this is related to the plugin. It could be a number of things. Could be related to your hosting package. Could be a new plugin. Could be your site trying to load too much data, for example if it's image heavy.

    If your hosting package allows you to override their site-wide php.ini you could try creating a custom one in your document root that specifies a higher memory_limit than your hosting provider defaults to.

    Otherwise, you can try adding the following to your wp-config.php ...

    define ('WP_MEMORY_LIMIT', 'nnn');

    ... where nnn is a suitable memory limit. You'll need to probably look at the output from phpinfo(); to find out what your current memory limit is.

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic