Book Image

WordPress Web Application Development

By : Rakhitha Nimesh Ratnayake
Book Image

WordPress Web Application Development

By: Rakhitha Nimesh Ratnayake

Overview of this book

Table of Contents (19 chapters)
WordPress Web Application Development Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Web application layout creation techniques


As we move into developing web applications, the logic and screens will become complex, resulting in the need of custom templates beyond the conventional ones. There are a wide range for techniques for putting such functionality into the WordPress code. Each of these techniques have their own pros and cons. Choosing the appropriate technique is vital in avoiding potential bottlenecks in large-scale applications. Here is a list of techniques for creating dynamic content within WordPress applications:

  • Static pages with shortcodes

  • Page templates

  • Custom templates with custom routing

Shortcodes and page templates

We discussed static pages with shortcodes and page templates in Chapter 2, Implementing Membership Roles, Permissions, and Features. The shortcode technique should not be used in web applications due to the lack of control it displays within the source code. Even though page templates are not the best solution, we can use them for advanced requirements...