HTML5: The Beautiful Butterfly! Part 2

Before starting this part, you may like to take a look on part 1. We are going to discuss some more important changes in this post. As HTML5 has been taking the top place of tomorrow’s world, it has a lots of flexibility. So, it’s your turn to use the resource that you have in HTML5. Section, Article and Aside tag Section is used to separate two or more parts, to make a connection between a heading and it’s excerpt or content. Also, within a section you can use h1 elements without having to worry about whether a particular section […]

Continue Reading

You may also like

Unique display name and nickname in wordpress

Hiya Folks! We know that display name and nickname are very useful option in wordpress. Some users want to show display name or nickname instead of username. But there is possibility to be the display name and username same for more than one users. It will create confusion in plugin like BuddyPress or Classifieds or so. But, if you can protect your user and system to create duplicate display name and nickname, then it’s achievable. Let’s make the hands dirty You can add these codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise […]

Continue Reading

You may also like

How to add login logout link in wordpress menu

We can add login and logout link using Appearance > Menus and then custom link. But then both links will be shown always, doesn’t matter if you are logged in or out. But if you want to use Login link only for visitors and logout link only for members, this little snippet will help you with that. You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name ‘mu-plugins’. If there is no folder […]

Continue Reading

You may also like

HTML5: The Beautiful Butterfly! Part 1

HTML or Hypertext Markup Language is a formatting language that programmers and developers use to create documents on the Web. The latest edition HTML5 has enhanced features for programmers such as video, audio and canvas elements. You view a Web page written in HTML in a Web browser such as Internet Explorer, Mozilla Firefox or Google Chrome. The HTML5 language has specific rules that allow placement and format of text, graphics, video and audio on a Web page. Programmers use these programming tags or elements to produce web pages in unique and creative ways. Tags enable the creator to make […]

Continue Reading

You may also like

WordPress admin user search by name

When we search user from wordpress dashboard (Users > All Users) we can search with username and email address. But we can’t search with first name or last name or both. So, what if we want to use search by name? You can use the following code snippet for that. You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. [php] add_action(‘pre_user_query’,’alter_pre_user_query’); function alter_pre_user_query($user_search) { global $wpdb; $vars = $user_search->query_vars; if (!is_null($vars[‘search’])) { $search = preg_replace(‘/^*/’,”,$vars[‘search’]); $search = preg_replace(‘/*$/’,”,$search); $user_search->query_from .= ” INNER JOIN {$wpdb->usermeta} […]

Continue Reading

You may also like