• Resolved blig

    (@blig)


    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?

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

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

    (@vicchi)

    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() (https://codex.www.ads-software.com/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() (https://codex.www.ads-software.com/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

    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

    Plugin Author vicchi

    (@vicchi)

    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

    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

    Hello Gary
    I hope you’re alright
    I have a problem with my author page since a few days : https://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 !!

    Plugin Author vicchi

    (@vicchi)

    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

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘[Plugin: WP Biographia] wp_biografia shortcode not parsed’ is closed to new replies.