Well, for you as a website owners who have lots of registered users in your WordPress site, perhaps you want to display them based on their selected country by using the geographical chart. Since Google Chart Tools provide their the Geochart Visualization, it makes the process more simple. The user’s country name should be based on ISO-3166-1 and can be selected in their profile page. This tutorial will guide you in a few steps as detailed below.
Hello, after reading and pay attention to the visualization of the Google Chart Tools with its pie chart, I then had an idea to use categories in WordPress installation. WordPress has provided some PHP functions that we can use with ease. Basically the process of making this chart is not so complicated, just needs a little PHP and WordPress built-in function, and a bit of copy-paste. Consider the following steps to visualize the categories in WordPress with Google Pie Chart.
PaginatorHelper is a CakePHP powerfull helper feature for pagination. It is very easy to use and have good documentation found here. It has functions like
next to generate pagination number with link to the paged. We will discuss how to create Bootstrap pagination for CakePHP.
This is a quick jQuery code or script to find ID with custom pattern. The jQuery match uses pattern as example below:
WordPress wp_tag_cloud function will returns selected tag, category or custom taxonomy terms with cloud style if we use the smallest and the largest parameter. We will get the output in the same size if we set the same size to the parameters. And of course, with the tag tooltip.
As a site owner with a big number of registered users and have some additional roles, perhaps you want to display the total registered users for each roles. WordPress have provided a function
count_users and a global variable
$wp_roles for information of each roles to make it simple. The count_users returns an array data with total users for each role and the total of all registered users.
To obtain multiple posts in accordance with the criteria that we give becomes easier with WP Query class. WP Query can be used to get the latest posts, based on post meta value, number of comments, post types, and so on.There is also a function to get posts by using get_posts() that have same parameters of WP_Query because it uses a new instance of it.
SimplePie is a very fast and easy-to-use class, written in PHP, that puts the ‘simple’ back into ‘really simple syndication’. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance. When the feed is using the media content url or link, we can not use the get_link() function directly to get a media content url. See example below:
Here is a simple excerpt on how to query posts by defined categories. This custom code uses a new instance WP_Query class.
Nowadays, many developers uses framework to reduce development time and focuses on the features or interface. But after upgrading to the WordPress latest version, front or back end shows strict standards or
E_STRICT level error message. The message comes from some custom classes provided by the framework or even the WordPress core. This also occurs when updating theme framework and the child theme generate the same errors. In plugins, this also could happened for addons.