Title: sima313's Replies | WordPress.org

---

# sima313

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Author Avatars List/Block] Multiple avatar lists conflict with each other](https://wordpress.org/support/topic/multiple-avatar-lists-conflict-with-each-other/)
 *  Thread Starter [sima313](https://wordpress.org/support/users/sima313/)
 * (@sima313)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/multiple-avatar-lists-conflict-with-each-other/#post-4810536)
 * 1. I use W3 Total Cache plugin. I did not have this bug when I had Object Cache
   enabled. Now I need to disable object caching. I conclude that author list bug
   has something to do with object caching.
 * 2. This bug remains both for admin and for non logged in users.
 * 3. I installed plugin version from github.com and now it is better.
 * 4. Now problem remains on the page where I use shortcode with full author list
   sorted by post numbers. Also on this page I enabled widget which shows the same
   list but the output number is limited by 10 items.
    So now bug is the following:
   In the widget there are the same number of avatars shown as in the shortcode 
   list. When I change the number of avatars in shortcode the number of avatars 
   dislayed in widget also changes (althought the max number for widget is set to
   10).
 * I also found that when I change Sorting order in widget or in shortcode (so that
   they differ) everything works fine. No conflict in max number parameter.
 * Hence I see the bug when there are 2 author lists with the same sorting order.
   Conflicting parameter is the maximum number of avatars shown.
 * You can observe this bug on my test website (copy of prodiction) -> [http://sandbox.favot.ru/authors/](http://sandbox.favot.ru/authors/)(
   Object caching is disabled. Some avatars does not display because it is not production.)
 * The sortcode I use:
    [authoravatars roles=author,contributor,editor,editors,blogger,
   journalist user_link=authorpage show_name=true show_postcount=true min_post_count
   =1 order=post_count,desc avatar_size=150]
 * Widget config is here:
    [https://dl.dropboxusercontent.com/u/40416848/avatar%20list%20widget.png](https://dl.dropboxusercontent.com/u/40416848/avatar%20list%20widget.png)
 * Now I fixed this bug by Visibility option of Jetpack plugin. I do not show widget
   on the page where I use shortcode.
    So now it is not so critical. Although if
   possible, it is better to fix this bug.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Author Avatars List/Block] Multiple avatar lists conflict with each other](https://wordpress.org/support/topic/multiple-avatar-lists-conflict-with-each-other/)
 *  Thread Starter [sima313](https://wordpress.org/support/users/sima313/)
 * (@sima313)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/multiple-avatar-lists-conflict-with-each-other/#post-4810424)
 * Now I avoid this just by showing only one list on every page so that they do 
   not conflict. I did this because I cant leave this problem remaining on my production
   site. So you can’t see any evidence of this bug on the page [http://favot.ru/authors/](http://favot.ru/authors/)
 * Altough this problem remains. As I noticed simply if there are two lists on the
   page, both lists are show with the parametres of the one which is closer to the
   top of the page.
 * If possible, please, solve this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] 502 Bad Gateway when authorizing connection](https://wordpress.org/support/topic/502-bad-gateway-when-authorizing-connection/)
 *  Thread Starter [sima313](https://wordpress.org/support/users/sima313/)
 * (@sima313)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/502-bad-gateway-when-authorizing-connection/#post-4798866)
 * Thanks for your reply. I wrote to jetpack support form as you have suggested.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack Post Views] Don't display 'jetpack-post-views' for scheduled post](https://wordpress.org/support/topic/dont-display-jetpack-post-views-for-scheduled-post/)
 *  Thread Starter [sima313](https://wordpress.org/support/users/sima313/)
 * (@sima313)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/dont-display-jetpack-post-views-for-scheduled-post/#post-4705281)
 * I found that for scheduled posts there is ‘publish_future_post’ add_action parameter,
   which triggers when the post is published.
    Unfortunately when I first time added…
 * add_action( ‘publish_future_post’, array( &$this, ‘add_jetpack_meta’ ) );
 * …it does not work.
 * I found info about how wp cron operates with post ID here [https://core.trac.wordpress.org/ticket/23700#comment:5](https://core.trac.wordpress.org/ticket/23700#comment:5)
 * I used instead of “global $post;” -> “$post_id” and it worked!
 * Just to conclude. Finally I added the following code:
 * // Future Post publish hooks
    add_action( ‘publish_future_post’, array( &$this,‘
   add_jetpack_meta_future’ ) );
 * /* ADD JETPACK POST META ON FUTURE POST PUBLISH */
    function add_jetpack_meta_future(
   $post_id ) { add_post_meta( $post_id, ‘jetpack-post-views’, 0, true ); }
 * Thank you Steven for your assistance! This topic is resolved now.

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