# WP Query Show Post Count when Paginating results Let’s say that you doing a custom query, and their is pagination in place, and you want to show : “Displaying 2 out of 5 results” (2 results on this page, and you have 5 total in all of the pages). The way to do …
WordPress – Create a Custom User Role (and Delete a Role)
# WordPress – Create a custom user role Sometimes you want to create a special user with a special name and behavior inside WordPress The way to add a custom user role is the following: function add_capability() { // Add a custom user role (1) – Let’s say… God! $result = add_role( ‘god’, __(‘God’), …