Allow users to upload attachments to certain posts

One way to do this might be with a plugin such as Gravity Forms, they allow you to create posts from a form, you can upload images too. They have an add on that helps you with this: https://www.gravityforms.com/add-ons/advanced-post-creation/ You can also see a bit more on this information here: https://fewerthanthree.com/tutorial/using-gravity-forms-multi-file-uploads-when-creating-a-new-post/ There might be other … Read more

how to redirect 404 to attachment.php?

Try something like the following at the top of your .htaccess file, before the WordPress front-controller: RewriteRule (.+/)amp$ /$1 [R,L] This redirects a request for /<something>/amp to /<something/ – removing the “amp” suffix. Note that this is a 302 (temporary) redirect.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)