CRUD Operation On WordPress Custom Post Type (CPT) From C# Over REST API
-
Published:2023-12-20
Issue:
Volume:
Page:323-331
-
ISSN:2581-6942
-
Container-title:International Journal of Case Studies in Business, IT, and Education
-
language:en
-
Short-container-title:IJCSBE
Author:
Chakraborty Sudip1, Aithal P. S.2
Affiliation:
1. D.Sc. Researcher, Institute of Computer Science and Information Sciences, Srinivas University, Mangalore-575 001, India 2. Senior Professor, Srinivas University, Mangalore, India
Abstract
Purpose: WordPress is a popular content management system. Around 45% of the internet's websites are powered by WordPress. Its main feature is posts. The contents are stored as posts. WordPress uses a database to store posts and configurations. Its REST API interface is robust and feature-rich. We can efficiently save the data from external environments into the database over the REST API as a post. However, standard post types provide enormous amounts of data. Low-speed systems and real-time processing can create a bottleneck. The data flow can be optimized using custom post type (CPT). Here, we describe how to create a custom field using available plugins. We make a REST API client using C# language. From the client application, we execute CRUD operation. The complete project code is freely available on GitHub.
Design/Methodology/Approach: There are several ways to test WordPress code. Instead of testing in live WordPress website, the best way is to work in local website. It is not harmful anymore because code is deploying in local only. to install WordPress locally, we use the “LOCAL” application. Using this approach, we can eliminate the server hiring cost for the experiment. after that inside the local application, we install WordPress Website. Then create Custom route to navigate our code. For client side, we make a client application in C# with GUI for better operation.
Findings/Result: We ran the project for a long time with practical examples without any issues. This architecture can be used to store IoT data inside the cloud. For the POST data is stored in the “wp_Posts” table where the additional CPT field is kept inside the “wp_postmeta” table, a couple of extra transactions that might cause data flow delays.
Originality/Value: WordPress database generally stores external data using post type. Here, we are using an approach beyond general usage. Even C# is not used for this purpose. The other more high-level languages are available to do our task effectively. However, the researchers from the dot net framework domain who want to keep data in the WordPress database as a custom post type can get this as a practical reference.
Paper Type: Experimental-based Research.
Publisher
Srinivas University
Reference15 articles.
1. Leone, S., de Spindler, A., & Norrie, M. C. (2012). A meta-plugin for bespoke data management in WordPress. In Web Information Systems Engineering-WISE 2012: 13th International Conference, Paphos, Cyprus, November 28-30, 2012. Proceedings 13 (pp. 580-593). Springer Berlin Heidelberg. 2. Wright-Porto, H. (2011). Setting Up a Custom Domain. In Creative Blogging: Your First Steps to a Successful Blog (pp. 143-162). Berkeley, CA: Apress. 3. Budd, A., Collison, S., Davis, C. J., Heilemann, M., Oxton, J., Powers, D., ... & Heilemann, M. (2006). WordPress. Blog Design Solutions, 171-213. 4. Fernandes, S., & Vidyasagar, A. (2015). Digital marketing and WordPress. Indian Journal of Science and Technology, 8, 61. 5. Williams, B., Damstra, D., & Stern, H. (2015). Professional WordPress: design and development. John Wiley & Sons.
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Autonomous Fever Monitoring System For Child Using Arduino, ESP8266, WordPress, C# And Alexa;International Journal of Case Studies in Business, IT, and Education;2024-02-26 2. Let Us Build a MQTT Pub-Sub Client In C# For IoT Research;International Journal of Management, Technology, and Social Sciences;2024-02-02
|
|