How to Register a New Menu in WordPress

| Last Updated: | In: WordPress, WP Labs


wordpress-logo

This is very short WordPress tips, which will let you know how to register a new menu in WordPress. Sometimes we need to create multiple menus to display on the front-end, due to client requirements. In this tutorial, I will share a simple code snippet to register a new menu on your WordPress site. Open …

C Program to Generate Random Number

| Last Updated: | In: C Programming Tutorial


This c program will generate the random numbers using rand() function. This is a very simple program. In this program, we have used for loop to generate multiple random numbers. As an example we print only the 10 numbers, you can generate as much you can by changing the number from 10 to as you …

C Program to Find the Largest Element From an Array

| Last Updated: | In: C Programming Tutorial


This is a c program to find the largest element from an array. We have used the for loop and if… statement to achieve the program goal. In this program, firstly the user will enter the number of array elements and then the numbers of elements. On the basis of entered array elements, we will …

MySQL Distinct Clause

| Last Updated: | In: MySQL Tutorial


MySQL DISTINCT clause is used in MySQL queries to filter the data after removing the duplicate records. By using DISTINCT clause, you will fetch only the unique records from the database table. In this tutorial, I will share MySQL Distinct clause with examples. MySQL Distinct Clause Below is the syntax of writing MySQL DISTINCT clause …

How to Find the Area of a Square Using C

| Last Updated: | In: C Programming Tutorial


This program will calculate the area of a square using c programming language. A Square has four equal rectangles and four right angles. You can calculate the area of a Square if you know the length of its rectangles. C Program to Calculate Area of Square Copy the below c program and execute ti with …

JavaScript String Functions With Example

| Last Updated: | In: HTML / CSS, Javascript & Ajax


javasrcipt functions

JavaScript short name (JS) is a dynamic programming language. It can provide the dynamic interactivity on websites when it applied with HTML documents. It was developed by Brendan Eich, co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation. Below is the list of JavaScript string functions. SN String Function Example 1 trim() …

How to Switch Post Type in WordPress

| Last Updated: | In: WordPress, WP Labs


How to Switch Post Type in WordPress

This is a very short tutorial which will let to know how to switch post type in WordPress sites. In this tutorial, I will share a simple code snippet which allows you to switch post type and also I have shared a WordPress plugin named Post Type Switcher. Use the below code at the end …