- WordPress Plugin Development Beginner's Guide
- Vladimir Prelovac
- 218字
- 2025-03-31 06:47:52
Chapter 4. The Wall
As you may have noticeed, this chapter carries the name of a famous album, which rocked the music world back in 1982. The artists used an unusual mix of music and film to produce an exceptional piece of art.
In this chapter, we will be using the same mixed approach, by taking advantage of creative WordPress and JavaScript techniques, in order to create an Ajax powered 'Wall' for your blog's sidebar.
We will be relying on what we have learned so far—WordPress hooks, API calls, and jQuery. We will also introduce a way to use built-in WordPress functionalities to achieve our project goals—saving both effort and time.
This chapter will introduce quite a few interesting techniques such as:
- Creating a special type of plugin—the Widget
- Storing the wall comments in the database—working with WordPress database
- Enter data in the form and updating the wall dynamically—Ajax form submit
You will learn these techniques by:
- Creating the Wall widget that appears in your blog's side bar. Users can add a quick comment and it will appear in the sidebar immediately (without reloading the page).
The wall will increase the usability of any blog by presenting a global meeting place for all users to communicate.
