Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Get all images uploaded to a post via comment

2 Posts
2 Users
0 Reactions
2,331 Views
Posts: 14
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@webtoolsframeworks)
Member
Joined: 9 years ago
[#4445]

I need to programmatically get all images uploaded to a post via wpDiscuz Media Uploader by using the post ID. I thought uploaded comment images would be attached to the post but I was wrong. Is there a way to get all images uploaded to the post from the wpDiscuz Media Uploader?

I do realize that I could use the naming convention to do a string match against objects in the media library but that is really inefficient. Anyone know of a better way?


1 Reply
Astghik
Posts: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi @webtoolsframeworks,

wpDiscuz media uploader addon has the "Attach files to current post?" option, please make sure it's enabled/checked. 

The option is located in the Dashboard > Comments > Settings > Addons > Uploader admin page. 


Reply
Share:
Scroll to top