Sometimes you want to password protect a category or certain categories in your WordPress website. Or wish only logged-in users with appropriate roles to access protected categories or custom post types category (taxonomy) within a public blog.
Tag » Functionality
6 Reasons – HTML5 Required Attribute Validation not Working
HTML5 is rich with plenty of features. The support of the required attribute and built-in browser validation is one such feature. With the HTML5 required attribute, you can perform form input validation without the complicated JavaScript code.
3 Ways – Convert a PHP Object to an Array and Vice-Versa
Objects and arrays are essential parts of our day to day programming. PHP object to array and array to object conversions are quite common requirements. We are mentioning three ways that you can use to convert PHP object to an array.
3 Ways – Multidimensional Array to Object Conversion
There are few ways to convert a multidimensional array to object. If you’re a PHP developer then you have noticed that array to object conversion as a common need. So we’re mentioning three methods to convert a multidimensional or simple associative array to object. Like you, we’re also not a fan of typing braces and […]
3 Ways to Insert a Page Break or Split a Post into Multiple Pages
Sometimes we wish to insert a page break in a lengthy post. In other words, splitting a post into multiple pages along with displaying links to the previous/next part of the post. It’s a good idea to break a long page or single post into multiple pages.
5 Ways – Equal Height Columns or Parent Div to Maximum from Children
Create equal height columns in a webpage. Or set parent div height to the maximum from children. Equalizing the height of divs assist to obtain a grid/column layout. Also, the same can fix the varying height issue due to rotation of sibling elements in a parent like a slider.
Create LD-JSON Breadcrumb Structured Data using Yoast SEO
LD-JSON Breadcrumb Structured Data is a format to let search engines understand the website hierarchy better. You can create LD-JSON Breadcrumb Structured Data using Yoast SEO plugin in WordPress website. After custom breadcrumb navigation, create LD-JSON Rich Data.
Custom Breadcrumb Navigation using Yoast SEO Plugin
Yoast SEO is one of the most popular WordPress SEO plugins. The plugin offers a breadcrumb navigation feature to put on your WordPress website. However, sometimes we wish to grab these breadcrumb items in an Array.
Display Custom Post Types Content in WordPress Templates
Create few templates to display custom post types content in WordPress. In the previous article, we have created few posts in our Books post types with some custom content fields.
3 Ways to Change Array Key without Changing the Order in PHP
You can change array key too easily but doing it without changing the order in PHP is quite tricky. Simply assigning the value to a new key and deleting old one doesn’t change the position of the new key at the place of old in the array.