Do not pass a role name to current_user_can(), as this is not guaranteed to work correctly (see #22624). Instead, you may wish to try the check user role function put together by AppThemes.
The first step when you can't figure out how to do something with WordPress is to find a tutorial. Here's how with these top WordPress YouTube channels.
In today's short tutorial, we show you how to add Facebook Reactions to WordPress using the free DW Reactions plugin. Really easy to do and uber-quick!
"I wanted to use widgets in the footer of my WordPress theme but my wordpress theme didn't come with a footer-sidebar by default. I didn't really wanted to change the theme just because of that. So I hacked the wordpress theme to introduce footer-sidebars. If you are looking for a tutorial that explains how you can add sidebars/widgets to the footer of your WordPress theme then keep reading."
"Unless you've been hiding under a (presumably delightfully comfortable) rock for the past few years, you will have noticed the extraordinary rise in the popularity of podcasting (one billion podcast subscriptions was passed way back in 2013). And being the enterprising type, you're ready to wade in and grab the opportunity that podcasting presents with both hands.
As a WordPress site owner, you'll be delighted to hear that podcasting and WordPress go hand in hand. To save you the unnecessary hassle and effort that can be involved with integrating podcasts with your WordPress site, we've rounded up seven of the top podcasting plugins out there for you to consider below. By the end of the piece, you're sure to have found a solution to suit your needs.
Before we crack on to the list though, let's cover some background on podcasting itself.
A Brief Overview of Podcasting
Podcasting's history goes back further than blogging itself. Although its roots lie in the 1980s indie radio boom, the modern format become popular in 2004 through platforms such as Odeo.
During that time, the iPod was the dominant force in online media consumption. Developers and radio enthusiasts were on the lookout for a way to easily add their programs to the device and Apple's 2005 integration of podcasts in iTunes set the ball rolling in earnest.
Since then, podcasts have been created by every conceivable media outlet and organization on earth and opened the door for many individual voices.
Some of the most popular podcasts have been entertainment-based. The Ricky Gervais Show, for example, started life as an incredibly popular podcast with roots in traditional radio. Due to its success, the show grew into an HBO series with multiple spinoff shows starring various cast members.
Other popular podcasts explore a diverse range of topics with standout examples including This American Life, The Joe Rogan Experience, The Nerdist, and Radiolab. The more technically inclined amongs
"Have you ever came across a site that style their posts differently? Some sites have different sticky posts highlighted whereas others have each category post styled with a different color, or some may even have a totally unique outlook altogether. Well, that is exactly what we are going to cover in this article. We will share how you can style different WordPress posts in different ways. So what are we going to use? We will use a function called post_class. Post Class function prints out different post container classes which can be added, typically, in the index.php, single.php, and other template files featuring post content.
Note: This tutorial requires that you are somewhat familiar with WordPress theming, and know fairbits of HTML / CSS. "
In this tutorial, we´ll be talking about the process of using media queries in a responsive design. But, let us first have an introduction to media queries.