Title: yoannspace's Replies | WordPress.org

---

# yoannspace

  [  ](https://wordpress.org/support/users/yoannspace/)

 *   [Profile](https://wordpress.org/support/users/yoannspace/)
 *   [Topics Started](https://wordpress.org/support/users/yoannspace/topics/)
 *   [Replies Created](https://wordpress.org/support/users/yoannspace/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/yoannspace/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/yoannspace/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/yoannspace/engagements/)
 *   [Favorites](https://wordpress.org/support/users/yoannspace/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display your Zenodo Publications] Zenodo API](https://wordpress.org/support/topic/zenodo-api/)
 *  Plugin Author [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/zenodo-api/#post-16281075)
 * Hi,
    You need to go to the plugin’s settings. As with other plugins, you will
   find this on the left side of the administration page (wp-admin). Once you are
   in the Zenodo plugin setting page, you can enter your ORCID. No need for a client
   ID/secret, we use the public API of Zenodo. Best regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display your Zenodo Publications] Does shortcode allow keyword-based options to display subsets of publications](https://wordpress.org/support/topic/does-shortcode-allow-keyword-based-options-to-display-subsets-of-publications/)
 *  Plugin Author [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/does-shortcode-allow-keyword-based-options-to-display-subsets-of-publications/#post-15572298)
 * Hi [@mccdcp](https://wordpress.org/support/users/mccdcp/),
 * A new version is online.
 * It will allow you to use:
    [display-your-zenodo-community keyword=”analytics”]
   or similar.
 * I haven’t added the multiple keywords as shown: [display-your-zenodo-community
   keyword=”analytics, methods”]. That could be part of a future update, but I wanted
   to be quick and allow you to use this new option. (The problem is not the code,
   but releasing a new version is often a pain in WordPress…)
 * I hope you like it.
 * Best,
    Yoann
 * PS: If you would like to give me your website URLs where you use this plugin,
   I would be keen on showing different examples in the README, for other users.
   Only if you want of course.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display your Zenodo Publications] Does shortcode allow keyword-based options to display subsets of publications](https://wordpress.org/support/topic/does-shortcode-allow-keyword-based-options-to-display-subsets-of-publications/)
 *  Plugin Author [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/does-shortcode-allow-keyword-based-options-to-display-subsets-of-publications/#post-15567365)
 * Hi,
 * Sorry I did not come back to you earlier… I just saw this message.
    It should
   be fairly easy, yes. As you probably know, you can set this in the general admin
   options.
 * In order to have this done also in the shortcode itself, would be probably pretty
   simple.
    I will try to do this in the next weeks, but if you can’t wait, I think
   you should simply add a parameter to the `display_zenodo_data` function (let’s
   call it `$attr`, so: `function display_zenodo_data( $attr ) { ... }`) and use
   it like this (in [here](https://github.com/DARIAH-ERIC/display-your-zenodo-community/blob/3c7fb952759f34bd085af93f713ec27e607f19f8/public/class-display-your-zenodo-community-public.php#L97)):
 *     ```
       if( is_array( $attr ) ) {
           //Of course you should add some specific checks here so it does not break or hurt your website
           $shortcode_specific_keyword = $attr['keyword'];
       }
       ```
   
 * Then send this variable to the `zp_retrieve_json` function (in [here](https://github.com/DARIAH-ERIC/display-your-zenodo-community/blob/3c7fb952759f34bd085af93f713ec27e607f19f8/public/class-display-your-zenodo-community-public.php#L221)),
   so you have to modify a bit the call and the function itself. And finally inside
   that `zp_retrieve_json` function, do something like (in [here](https://github.com/DARIAH-ERIC/display-your-zenodo-community/blob/3c7fb952759f34bd085af93f713ec27e607f19f8/public/class-display-your-zenodo-community-public.php#L230))
 *     ```
       if( $shortcode_specific_keyword ) {
           $extra_keyword = $shortcode_specific_keyword;
       } elseif( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) {
           $extra_keyword = $display_your_zenodo_community_options['extra_keyword'];
       }
       ```
   
 * That should be it, but I haven’t tested anything here…
 * I hope it helps.
 * Best,
    Yoann
    -  This reply was modified 4 years, 4 months ago by [yoannspace](https://wordpress.org/support/users/yoannspace/).
      Reason: typo
    -  This reply was modified 4 years, 4 months ago by [yoannspace](https://wordpress.org/support/users/yoannspace/).
      Reason: typo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HAL] Erreur pagination](https://wordpress.org/support/topic/erreur-pagination/)
 *  Thread Starter [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/erreur-pagination/#post-12908677)
 * Merci pour la mise à jour ! (Je ferme ce ticket)
    (une note, la page README.txt
   ne contient pas les infos de la nouvelle version, e.g. changelog, etc…)
 * Yoann
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HAL] Erreur pagination](https://wordpress.org/support/topic/erreur-pagination/)
 *  Thread Starter [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/erreur-pagination/#post-12794743)
 * Bonjour,
    Je laisse le patch ici au cas où ça vous intéresse : [https://gist.github.com/yoannspace/adcdc04228412de4cfc46905512b5600](https://gist.github.com/yoannspace/adcdc04228412de4cfc46905512b5600)
   Yoann
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HAL] Erreur pagination](https://wordpress.org/support/topic/erreur-pagination/)
 *  Thread Starter [yoannspace](https://wordpress.org/support/users/yoannspace/)
 * (@yoannspace)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/erreur-pagination/#post-12529110)
 * Je peux vous envoyer un patch si vous voulez, ça peut être plus simple pour que
   vous puissiez le regarder et l’intégrer si c’est intéressant.
    Je l’ai intégré
   dans votre code pour notre site en attendant une nouvelle version.
 * Cordialement,
    Yoann

Viewing 6 replies - 1 through 6 (of 6 total)