Title: pend00's Replies | WordPress.org

---

# pend00

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contextual Related Posts] Fatal error in plugin](https://wordpress.org/support/topic/fatal-error-in-plugin-3/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-in-plugin-3/#post-15584283)
 * [@ajay](https://wordpress.org/support/users/ajay/) I’ve changed `get_crp_posts_id`
   to `get_crp_posts` and updated the plugin and everything works as expected now.
   Thank you!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Contributor role cant remove post](https://wordpress.org/support/topic/contributor-role-cant-remove-post/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/contributor-role-cant-remove-post/#post-14600457)
 * Thank you for your help! I’ll try to find another way, not using wp’s delete 
   post link.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Contributor role cant remove post](https://wordpress.org/support/topic/contributor-role-cant-remove-post/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/contributor-role-cant-remove-post/#post-14599051)
 * If I give Contributors the right to “Manage Options” it works. What do Manage
   Options do? Would it be a risk to allow site users to have that right? I’m hiding
   the Dashboard menu bar at the top and they are not allowed to edit the dashboard.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Contributor role cant remove post](https://wordpress.org/support/topic/contributor-role-cant-remove-post/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/contributor-role-cant-remove-post/#post-14598955)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) I’ve made my custom 
   post types with the Pods plugin. In the Pods settings for that custom post type,
   it was set to use Posts capabilities. I’ve changed it to have its own custom 
   post type capabilities and selected the appropriate ones in Members, but it still
   doesn’t work.
 * [@wpcoworker](https://wordpress.org/support/users/wpcoworker/) I will try and
   see if that works. What will the outcome be? That the Contributor role will lose
   all capabilities or does it go deeper than that?
 * Thank you for your replies.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP ULike – Like & Dislike Buttons for Engagement and Feedback] Sort by likes with “orderby”](https://wordpress.org/support/topic/sort-by-likes-with-orderby/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/sort-by-likes-with-orderby/#post-14092244)
 * I’ll answer my own question if someone needs help with this in the future.
 * You can simply add `?orderby=’date’&order=’dsc'` at the end of an archive URL
   and WordPress will recognize it and order the archive accordingly. However, this
   doesn’t work with properties that aren’t predefined by WordPress, so doing something
   like `?orderby=’likes’&order=’dsc'` will do nothing.
 * But you can check for the value of `orderby` in a PHP function before the archive
   is generated and if it is ‘likes’ then modify the query. ULike has a function
   to get posts sorted by likes, `wp_ulike_get_popular_items_ids()`. So my code 
   at the end looked like this (it’s a bit simplified for demonstration):
 * **HTML:**
 *     ```
       <select name="sort" id="sort" onchange="document.location.href=\'?\' + this.options[this.selectedIndex].value" class="archive_sort_dropdown">
       [...]
           <option value="orderby=likes" class="archive_sort_dropdown_item" >Most liked</option>
       [...]
       </select>
       ```
   
 * **PHP:**
 *     ```
       add_action('pre_get_posts', 'most_liked_query');
   
       function most_liked_query($query)
       {	
   
           if($_GET['orderby'] == 'likes'){
               $post__in = wp_ulike_get_popular_items_ids(array(
                   "rel_type"   => 'article', //post type
                   "period"     => 'all', //all time, I think you can set week, day etc
                   "limit"      => 0 //how many posts to get, I think 0 is all posts
               ));	
   
               $query-> set('post__in', $post__in);
               $query-> set('orderby', 'post__in');
   
               return $query;
           }
       }
       ```
   
    -  This reply was modified 5 years, 2 months ago by [pend00](https://wordpress.org/support/users/pend00/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration] Display message on submit](https://wordpress.org/support/topic/display-message-on-submit/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/display-message-on-submit/#post-14075811)
 * Hi!
    Thank you for a quick reply! The thing is that I would like the user to 
   come to the newly created post, that make sense. But I want to show a message
   as an overlay or similar.
 * When editing a post a message is shown on Update. Is there something like that
   but for submit.
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SSL Zen — SSL Certificate Installer & HTTPS Redirects] HELP! Crash after update!](https://wordpress.org/support/topic/help-crash-after-update/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-crash-after-update/#post-13922940)
 * I managed to remove the plugin by simply deleting the SSL Zen folder from wordpress’
   plugin folder via ftp. It solves it. Tried to reinstall it and the crash happened
   again, so there seems to be a critical issue with the latest update.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Show pageviews on the front-end](https://wordpress.org/support/topic/show-pageviews-on-the-front-end/)
 *  Thread Starter [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/show-pageviews-on-the-front-end/#post-13922206)
 * The earliest issue regarding this seems to be [1019](https://github.com/google/site-kit-wp/issues/1019)
   and it is about a year old. Do you have any insight if this is a feature that
   is planned or not. I might have to look for other solutions if it is not.
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP ULike – Like & Dislike Buttons for Engagement and Feedback] Sort Most Liked Posts in custom query?](https://wordpress.org/support/topic/sort-most-liked-posts-in-custom-query/)
 *  [pend00](https://wordpress.org/support/users/pend00/)
 * (@pend00)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/sort-most-liked-posts-in-custom-query/#post-13873325)
 * I have the same problem. The correct value for my likes is shown in the admin
   tools and on my custom post pages. But sorting on most likes won’t work. For 
   me `wp_ulike_get_popular_items_ids` returns nothing.

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