How to rewrite URI of custom post type in WordPress?

Posted by Prem Tiwari | Updated on | in WordPress, WordPress Core.


In this post, I will share how to rewrite URI of custom post type in WordPress. This is what I use to rewrite custom post type URLs with the post ID. You need a rewrite …

PHP ltrim() Function

Posted by Prem Tiwari | Updated on | in PHP Documentation.


This function returns a string with whitespace stripped from the beginning of str. Without the second parameter, ltrim() will strip these characters: Syntax: Example #1 Usage example of ltrim()

PHP rtrim() Function

Posted by Prem Tiwari | Updated on | in PHP Documentation.


This function returns a string with whitespace (or other characters) stripped from the end of str. Without the second parameter, rtrim() will strip these characters: Example #1 Usage example of rtrim() Output:

PHP trim() Function

Posted by Prem Tiwari | Updated on | in PHP Documentation.


This function returns a string with whitespace stripped from the beginning and end of str. Without the second parameter, trim() will strip these characters: Another example: Remove newlines (\n) from both sides of the string:

How to retrieve the value of a text field in flutter

Posted by Andre Scott | Updated on | in Flutter.


In this article, you will learn How to retrieve the value of a text field in flutter which a user has entered into a text field: After supplying the TextEditingController to the text field, begin …

How to add item to media library from blob or dataUrl?

Posted by Prem Tiwari | Updated on | in WordPress.


There is no direct way to pass pure binary data to the WP upload object. Only File based objects will be processed. I had to create a separate XmlHttpRequest. (Simply using $.ajax() did not work …

Build a form with validation in flutter

Posted by Andre Scott | Updated on | in Flutter.


Apps often require users to enter information into a text field. For example, you might require users to log in with an email address and password combination. To make apps secure and easy to use, …

How to create and style a text field in flutter

Posted by Andre Scott | Updated on | in Flutter.


Text fields allow users to type text into an app. They are used to build forms, send messages, create search experiences, and more. In this recipe, explore how to create and style text fields. Flutter …

R Program to Find L.C.M.

Posted by Editorial Staff | Updated on | in R Programs.


R Program to Find L.C.M. In this example, you will learn to find the L.C.M of two numbers entered by the user by creating a user-defined function. This program asks for two integers and passes …