WordPress

Get current logged in user ID in WordPress
Sometimes while creating plugins or themes you may required current user logged in ID in WordPress. There are various ways to fetch it, but today I am going to share with you two easiest approach to get logged in user’s ID. Method 1: Using PHP code in Wordpress Use the code below to get current user id in WordPress. $c_user_id = get_current_user_id(); echo 'User ID is: ' .$c_user_id; The get_current_user_id function will give you the currently logged in user’s ID. But, if a user is not logged in, it will show 0. Another common approach that uses some code is the get_currentuserinfo() function. It will give you the whole information of user that include username, email, first name, last name etc. But, get_current_user_id() is more quick and fast technique to extract the user ID. This function was included in WordPress 3.0 as part of the Multisite code, integrated with WordPress. Method 2: Using a WordPress Plugin In this method you will not only get current user id but you can check user id of other users in dashboard as well. We will use Reveal IDs WordPress plugin. Simply install this WordPress plugin and then navigate to Users tab from WordPress

Continue Reading

WIX-vs-WordPress
install wordpress on a2hosting
Best Google anlytics wordpress plugins
Google Analytics (GA) is a free and powerful tool from Google that is used to monitor your website traffic. Once you will add your website to Google Analytics, you can view all insights of your site, in google analytics dashboard. But if you have created a WordPress website then you can easily integrate Google Analytics with your website dashboard. This means you can view all insights of your site, under your WordPress dashboard. Below is the list of top 5 google analytics wordpress plugins through which you can integrate Google Analytics with your WordPress website. Google Analytics Dashboard for WP by ExactMetrics (GADWP) GADWP is defined as one of the most popular plugins, with the highest number of active installations. Google Analytics Dashboard for WP enables you to track your sites using the latest GA tracking code and allows you to view key GA statistics in your WordPress dashboard. This plugin also helps you track specific events on your site. Some of these include emails, downloads, page scrolling depth, and affiliate links. You can even create HTML elements that allow you to track custom events and actions. One of the key features of Google Analytics Dashboard for WP is the

Continue Reading

1 Comment  Like
easy-table-wordpress
Tables provide a great way to display or present data in an easily understandable format. So many website owners want to add tables in WordPress. So without wasting any time, I will show you the best method to create a table in WordPress. Create a table in WordPress There are multiple ways to create a table in WordPress but in this article, I will show you the easiest way to create a responsive table in WordPress. We will use the Ninja tables plugin to create a table in WordPress. With this WordPress table plugin, you can create a responsive table in WordPress. So Let's start Step 1: Firstly we will install this plugin by going to Plugins >> Add new from WordPress dashboard. Then search for Ninja tables. Install and activate this plugin. Step 2: After installing the Ninja table plugin it’s time to create our first table. So go to NinjaTables >> All tables. Click on "create your first table" button. Step 3: After clicking the "create table" button, you will be redirected to a page where you need to enter the table title (table name) and table description. So please enter both table name and description as written

Continue Reading

2 Comments  Like
How to create wordpress child theme
Do you want to create a WordPress Child theme? As a beginner, you might find it a bit difficult but after reading this article you will be able to create child theme very easily. In this article, you will get to know What is a child theme, Why it is important and How To Create WordPress Child Themes easily (With or without plugin). What is a child theme? As the name suggests child theme is directly related to its parent. WordPress child themes inherit all of the features & design elements from its parent theme. It helps you to fully customize your WordPress theme. Whatever changes you make in your child theme will not affect your base or parent theme but when you make changes in the parent theme, it will reflect in the child theme. Why you need a WordPress child theme? Whenever you update your parent theme, your customized code which you have written will be deleted automatically because all the files of the theme will be updated. so it would be better to always write your customized code in a child theme. I will give you one more example of the importance of a WordPress child theme.

Continue Reading

1 Comment  Like
change Wordpress login url
Most of the websites get hacked because of their security. I have seen several websites that have good authority and audience but still, their security level is very basic. Almost every day I have seen people reporting that their website got hacked, their content was deleted. If you are having a good website and don’t want to lose it then this article is for you. Today Here I will be sharing a quick guide through which you can prevent your website from hacking. You can add up security level to your website just by changing WordPress Login. Most of the websites are developed on WordPress, we hope you are also using the same. Here in this guide also we will be talking about the WordPress platform because as mention above the majority of the websites are developed on WordPress. If you want me to provide a guide on some other platform then you can drop a comment below and I will try to provide you with a solution as soon as possible. In this guide, I will be using a free security WordPress plugin to change WordPress login page URL. I won’t be following the typical method that is changing

Continue Reading

2 Comments  Like
How to add cookies notification message in wordpress website
Cookies are the small files that are stored in your PC. These files are used by the website that your browser store. Basically, each website that you visit create some cookies on your PC or smartphone so that next time whenever they are accessed, they can load faster. Some Websites use cookies to store user data for instance, once you have logged in to Facebook now, even if you will close the Facebook tab and whenever you will reopen it you need not to login again. This is because your login details are sorted in the cookies that are available on your system. Whenever you will access Facebook, it will check in those files (cookies) about your login history and if something exists then it will resume your session. As a user, we might have privacy issues if any website if not informing us whether they are using cookies or not. Or it is like as a User we will appreciate the website that will tell us at the very initial phase that they are using cookies to improve the user experience. Today I will share a guide through which you can display Cookie message on your website. This guide

Continue Reading

1 Comment  1
How to submit sitemap to google webmaster tools searcch console
In order to reach new heights in business, marketing is important. Similarly, Google Webmaster is important to get traffic from Google. Like all other apps from Google, a Webmaster is also a free tool. Almost all Website owners use Webmaster to have a look over the relation between their website and Google (as a search engine). Here I will be sharing a guide with you through which you easily Add your website’s sitemaps to Google Webmaster 2019. Before proceeding towards the guide, you need to create an account on Webmaster if you haven’t yet. Once you are logged in to webmaster account, you have to add your website and need to verify it. If you haven’t verified your website yet then you check our guide on "How to add a website in Google Webmaster 2019". Note: – Google Webmaster 2018’s layout and the interface was very different from Webmaster 2019 thus, it is recommended to read the guide as per your webmaster’s version. But 2019’s Webmaster has some more features than 2018’s webmaster. Now, let begin with the Guide Itself. Step 1# Login to your Google Webmaster account. The very first is to login into your Google webmaster with the

Continue Reading

1 Comment  1
How to change wordpress username
I hope you have already tried to change your WordPress Username but somehow you couldn’t. We will be sharing two different methods through which you can change your WordPress Username very easily. Although the complete procedure is not very complex but still it needs some special tools or we can say it has some particular steps to be followed. Earlier You might not have the proper knowledge but after reading this article you will become expert of changing WordPress Username. But if you are just reading this article just for gaining some knowledge then you have to understand What are the reasons that may lead you to change the Username? Why to change Username? Security could be a reason, if you had shared your important login details with someone back in the days then, changing your Username can add a new layer of security to your Website. While Installing the WordPress, you might have opted the “admin” username and now you want to change it. Sometimes, while selling a website personal name as a “username” can affect the impression on client thus, for your client you want to change. You might want to switch your username to something more relevant

Continue Reading

>