Building a product image slider

We can use sliders to display any type of content, with the common type of content being images. The first step of integrating any UI component is the process of capturing the data. In this scenario, the required data will be a set of images. So, we need to build an interface to let the administrator upload a set of images for the slider. We have two options for creating an interface for such requirements:

  • Menu pages: We can use the add_menu_page function to create a new menu page for the features of our plugin. This will be a top-level menu item in the WordPress admin menu with the ability to support sub menu pages. This is suitable when you need to highlight the menu of your plugin as well as create different ...

Get WordPress Development Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.