wordpress post views count

WordPress Post Views Count - An Easy Solution

Here is the solution to easily find the WordPress post views count.

According to the reports from BuiltWith, WordPress is the most popular CMS used for websites. We can create, store and manage news documents, images, video and any other online content type imaginable in WordPress. But unfortunately there is no inbuilt feature for finding the WordPress post views count. In the following example we are explaining how to find the WordPress post views count without using any third party plugin. Very minimal codes have been used in this example.

WordPress Post Views Count

We have to make some changes in the WordPress theme files. I.e. Here we have to add a few lines of codes in functions.php, single.php and page.php files. Also we have to add a few lines of code where we have to fetch the post views count.

Add the below code snippet to functions.php.

[crayon-6632e18536f6b555390726/]

Now,  ADD THE below CODE snippet AT THE BEGINNING OF SINGLE.PHP & PAGE.PHP.

[crayon-6632e18536f77295544808/]

finally, use THE below CODE snippet TO DISPLAY THE POST VIEWs COUNT.

[crayon-6632e18536f79930659750/]
Note: Use this code as a reference and make needful customization for any particular requirement. If we are using a  purchased template then we have to make these changes each and every time after updating the template. Otherwise we have to use child themes. It is compatible with version 4.3.1 of WordPress.

WordPress post views count is normally used in online magazines, audio or video sharing platforms. It is used to display the user engagement. Here are some of the websites using this feature.

  1. LetsTune
  2. Bazaar

app icon generator

App Icon Generator

UI designers are well aware about the difficulties in designing Mobile App user interface. Since there are many devices with different dimensions and resolutions, it is really difficult to go with a single design. Here comes the relevance of tools such as App Icon Generator, Nine-Patch Generator (described in a previous blog) etc.

App Icon Generator - An Amazing Tool for Designers

App Icon Generator is used to create multiple app icons for different devices from a single image file. During the UI designing process, our designers found an amazing tool 'Make App Icon' for generating app icons of android and ios applications. It is a super cool online app icon generator developer by Oursky.

Here the designer need to create a single design for the app icon. There is no need to resize the icons manually for different uses. App icon generator will do the job. There are a lot of such online designer tools for different requirements. One of the best in the business for generating app icons is Make App Icon.

Make App Icon

Make app icon supports the files in the following format, PSD, PNG and JPEG. Also they guarantee best results with the images at 1024 x 1024 pixels. Once we upload the file in the mentioned dimension. They will provide us a preview of app icons in different devices. By the time the icons will be ready for download. We can provide our mail id over there and download the icons as a zip file. The zip file includes the icons for Android Phones, tablets, iPhone, iPad and apple watch. There they have provided some mobile UI tips as well. Such as, how to use app icon generator for mobile web apps, guidelines for creating app icons for iOS 8. They also provides API service to generate app icons via API calls.

Make App Icon


why you must have a mobile application

Why You Must Have a Mobile Application

Here we explain the reasons why you must have a mobile application for the growth of your successful business.

A few years back websites were the catalysts of a business. But the scenario has been changed dramatically. Introduction of Smartphones have changed the lifestyle of billions of people and hence the market as well.  According to the latest studies, the number of smartphone users worldwide will surpass 2 billion in 2016. Internet is being accessed on the go. More people are now accessing the internet from their mobile devices. By 2017 around 2.97 billion users are expected to use the internet over their phones, which is around 91% of total internet users and 58% of mobile phone users. In the coming future, the Smartphone/Mobile Devices would become our primary way of connecting to the internet and Smartphone users would access major applications and data from their mobile devices.

So its always better to have a Mobile Application or a responsive website for your business. But websites have limitations, mobile applications can navigate the user to the desired path at ease. Also mobile application can access the native features of the Smartphone such as location, motion sense, sound recognition etc. which a responsive website can not do.

Don't you have a Mobile Application for entering the future yet?

Get Your Free Quote


wordpress most popular and most shared posts

WordPress Most Popular and Most Shared Posts

While developing a WordPress template, plugins will help to an extent in certain requirements. In such cases we will have to write custom functions / code for implementing the exact requirement. Here we're explaining such a requirement. The requirement is to fetch WordPress Most Popular and Most Shared Posts and display 5 posts from each.

Here we can see how to fetch WordPress Most Popular and Most Shared Posts in simple steps.

WordPress Most Popular and Most Shared Posts

1. Steps to fetch 5 Most Popular Posts in WordPress
step 1:  add the following code to functions.php (theme functions)

[crayon-6632e18537433016227117/]

step 2: add the following code AT the beginning of single.php & page.php in your template (theme)

[crayon-6632e1853743b274451229/]

step 3: add the following code at where you need to display the 5 most popular posts (most views)

[crayon-6632e1853743d225847076/]

2. Steps to fetch 5 Most Shared Posts in WordPress
STEP 1:  ADD THE FOLLOWING CODE TO SIngle.PHP/Page.php right after the loop starts

[crayon-6632e1853743f978001464/]

STEP 2: ADD THE FOLLOWING CODE WHERE YOU NEED TO DISPLAY THE 5 MOST shared POSTS (facebook shares)

[crayon-6632e18537440676106211/]

you can customize the number of posts and the post contents to display as well.