Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WordPress Web Application Development - Second Edition
  • Table Of Contents Toc
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

By : Ratnayake
1.3 (3)
close
close
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

1.3 (3)
By: Ratnayake

Overview of this book

This book is intended for WordPress developers and designers who want to develop quality web applications within a limited time frame and for maximum profit. Prior knowledge of basic web development and design is assumed.
Table of Contents (14 chapters)
close
close

Implementing custom post types for a portfolio application

In this section, we will extend the plugin developed in Chapter 3, Planning and Customizing Core Database, and implement the custom post type-related functionality. First, we have to create a new file called class-wpwa-custom-post-types-manager.php inside the root directory of the wpwa-portfolio-manager plugin.

Most web applications will be larger in scale compared to the normal websites or blogs. Implementing all custom post functionalities in one file is not the most ideal or practical thing to do. So, our plan here is to keep the initialization and generic configurations in the main file, while separating each of the custom post types into their own class files. Before we go any further, I would like you to have a look at the updated folder structure of the plugin using the following screenshot:

Implementing custom post types for a portfolio application

Now, let's go through each of the new files and folders to identify their role:

  • class-wpwa-custom-post-manager.php: This includes...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WordPress Web Application Development - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon