Book Image

WordPress Development Quick Start Guide

By : Rakhitha Nimesh Ratnayake
Book Image

WordPress Development Quick Start Guide

By: Rakhitha Nimesh Ratnayake

Overview of this book

WordPress is the most used CMS in the world and is the ideal way to share your knowledge with a large audience or build a profitable business. Getting started with WordPress development has often been a challenge for novice developers, and this book will help you find your way. This book explains the components used in WordPress development, when and where to use them, and why you should be using each component in specific scenarios. You begin by learning the basic development setup and coding standards of WordPress. Then you move into the most important aspects of the theme and plugin development process. Here you will also learn how themes and plugins fit into the website while learning about a range of techniques for extending themes and plugins. With the basics covered, we explore many of the APIs provided by WordPress and how we can leverage them to build rapid solutions. Next, we move on to look at the techniques for capturing, processing, and displaying user data when integrating third-party components into the site design. Finally, you will learn how to test and deploy your work with secure and maintainable code, while providing the best performance for end users.
Table of Contents (16 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Integrating jQuery accordion


In this section, we are going to look at the integration of another popular UI component called Accordion. The accordion is a component that allows you to display a large amount of content within a limited space using collapsible sections. We have chosen the accordion component of the jQuery UI library (https://jqueryui.com/accordion/) as a basic solution. You can find many advanced accordion component libraries.

In the image sliders section, we used a menu page to capture data, and limited it to a single fixed-image slider. However, it’s also important to have the ability to use same component with different content in various places on the site. So, we are going to build accordions with the ability to create unlimited components with dynamic content. We can either use custom post types and store the data in a wp_posts table, or we can use a custom table. Since we are developing a UI element, we are going to use custom post types to simplify the process. Let...