Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress Modal Dialogs

Adding WordPress Modal Dialogs (Using Static Data)

In the previous post, I walked through the process required to get WordPress modal dialogs to appear within the context of the administration area.

This uses:

  • the built-in WordPress API,
  • the provided Thickbox library,
  • and some example code for getting it to display.

In this tutorial, I’ll walk through populating the modal dialog with data. After that, I’ll share how to populate the data dynamically using Ajax.

Continue reading

Adding WordPress Modal Dialogs (With Built in Libraries)

Whenever it comes to developing solutions for clients, there are going to be times when you’re likely tasked with displaying information in WordPress modal dialogs.

There areĀ a lot of solutions available for doing this and the more familiar you are with JavaScript, various libraries, and the libraries that they have available, the harder (or maybe it’s even easier) it is to choose which one to use.

But WordPress has infrastructure built-in that makes it trivial to incorporate functionality into WordPress. So in three upcoming posts, I’ll cover the following:

  1. How to incorporate WordPress modal dialogs using built-in libraries,
  2. Populating the modal dialogs with data,
  3. Populating the modal dialog with dynamic data via Ajax.

Because of the nature of the series, the posts won’t be back-to-back, but they’ll all use a unique tag that you can use to bookmark and refer to as a series once the postsĀ are complete.

With that said, let’s talk about easily incorporating WordPress modal dialogs with built-in libraries.

Continue reading

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑