Abstract

Purpose: WordPress is a popular content management system. Almost half of the internet websites are built using WordPress. It stores data as a post inside its database. It has a built-in post type where a programmer or developer can quickly build a post. But sometimes it does not fulfill our requirements. We need to customize the available posts by adding additional fields. Another way is to create a custom post type from scratch. Sometimes, we are not encouraged to implement custom post types due to the lack of practical or lengthy documentation. Here, we provide practical-oriented documentation so researchers can quickly build custom post types into their projects. The CPT module code is freely available to download and use. Design/Methodology/Approach: We install WordPress websites locally using a “local” application. Inside the plugin folder, we create a folder named “custom-post-type.” Inside the folder, we make a file “index.php.” We add our code inside the file so that when the website refreshes, it establishes a plugin automatically. Findings/Result: WordPress's custom post type is an outstanding feature. Where the default post type cannot provide proper data structure, the custom post type allows us to fulfill our requirements. We installed a WordPress website using local software and created a custom post. After that, we add data to it. It worked without any issues. Originality/Value: Many documents are available on WordPress's custom post type. Most of those are lengthy and time-consuming to execute. Sometimes, our researcher cannot afford more time to implement the code into their project. So, consuming several hours, we provide the complete practical process in a very concise manner. Paper Type: Experimental-based Research.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call