Multi-Message System Setup Codeigniter

Job ID: 38581979

Budget: $10 – $30 USD

I'm trying to set up a system that can handle multiple messages using a caption plugin (emojionearea) for text input and a media widget from the controller \Core\Whatsapp\Controllers\Whatsapp. However, I'm facing an issue when I create multiple message entries. Specifically, the data in the caption and media fields is not working independently.

For instance, when I upload an image in the first entry, the second entry automatically displays the same image, even though it should allow for different images. This issue also affects the text captions when using the emojionearea plugin, where the caption fields behave similarly by sharing data between entries.

The image I’ve attached illustrates the problem, where two different text entries and media upload sections are visible, but both entries are showing the same image and text content.

Key Points:
1. Caption: The emojionearea plugin seems to be sharing the same instance across multiple fields.
2. Media Widget: The media upload widget shows the same image in multiple entries instead of allowing each entry to have its own independent content.

Could you help me figure out how to resolve this so that each message entry can have independent media and caption fields?
Related categories: PHP WordPress Codeigniter MySQL HTML