i have searched a lot, not comming up with a solution, i want to allows department users in organization to be able to upload files from frontend in Wordpress, they should be able to upload into there category, like i have created Legal Post category, so legal guys should upload only to legal category,
any plugin or file manager for wp
thanks
we have hook 'edit_category_form_fields' for add extra field in the post category. which will help you for set upload field for upload file. Once it field is create then we have to set permission for this field to able to add from front-end. Please check this link how to use hook the help you. https://developer.wordpress.org/reference/hooks/edit_category_form_fields/
Related
I am looking for a plugin or addon for adding a file uploader into my product page.
As my client is selling something that should require some kind of certificate or evidence, this would request the user to upload the pics or files when they want to add something into the cart.
I've found a solution is to add the meta attribute for the product and then add the file uploader into the product page. But my project leader denied my solution, he wants me to search for some possible plugin or add on first.
What I need to is like, I need to find a plugin or add on which could enable me to add a file uploader on the product page when the customer is placing the order. The file will be included in the order because my client will not directly charge the money from the customer, once my client check that the evidence or certificate is valid, the money could charged and the good could be shipped.
I've done some search and I think just add a meta attribute is easy, but my leader denied this. So I am coming to ask some help.
Thanks.
You could use a plugin like this https://codecanyon.net/item/woocommerce-custom-fields/11332742
It's a paid plugin though.
I think, there is too many plugins (free or paid) are available to customize WooCommerce product page.
But File Upload option may only available in premium plugins.
Can you please check themehigh's WooCoomerce extra product option plugin?.
I have tried that plugin for one of my client. The options available in product page are File Upload, Text, Hidden, Password, Textarea, Radio, Checkbox, Select, Multi-select, Date picker, Time picker, Heading & Label etc.
How can I create a custom meta for WordPress where the user uploads an image, one per author of course.
I am stuck blindly.
Thanks
For those who want to do this, I managed to do it by creating a custom from to upload a photo, in that form I enabled the rename of the photo uploaded so it doesn't get added as a new one, then I called the wordpress blog header to capture the user ID and rename the photo to my preference-$current_user->user_login.jpg and then sorted! :) echo that.
However, on the author profile there is a twist, you can't get $current_user->user_login else you will be displaying your own photo on someone else's profile, to solve this I called and that pulls the unique images! :)
VOila! there you have it.. and this can be re-used for anything...
I was wondering what the best way to achieve the following:
Customer makes an order (normal functionality)
Once order is placed, the admin needs to upload a pdf attachment related to the order
The customer can then view the attachment(s) when viewing the order
I can see there are plugins where the custom can upload supporting files, but none that cater for the admin to do this.
Why not add a new custom field for that product?
(source: chizzledesigns.com)
So once your client generates the PDF they can upload it just like normal into the media gallery and add the link (or at least the file name) into the Order PDF field for that specific order.
Next you would need to decide how to show the user that in your theme but querying for that meta value should not be difficult.
With default woocommerce functionality the main way to do this is to create virtual downloadable product (but not available on shop pages) and upload your pdf file there. Then when the order would be ready, you should grant access to that virtual product at the order edit page.
I want my users to be able to mark posts as favorite. I tried the wp-favorite-posts plugin, but it doesn't work. I mark posts as favorites and after refreshing the page it's all gone. Furthermore, if I put {{wp-favorite-posts}} to a page, it just shows the text.
So I want to create my own solution, but don't really know how. I have never edited the WP database, but I have plenty of PHP mySQL experience.
Can anyone please point me in the right direction ?
You can use post_meta. You can store the "favourite" aspect as a custom field attached to each post. You don't need to manually edit the database (i.e. via mySQL).
When you want to show the favourited posts, run a custom query that only shows posts with the specific custom field that you've specified.
I am building a WordPress website that will allow members to upload media such as videos, images, etc. They will do this on a public form at for example: domain.com/upload
The form will ask for a Title, a brief summary, show some categories to choose from, and finally a file uploader. The user will then be able to submit the form and it will appear on the site as a post but instead of being just text it is a piece of media.
I have created a custom post type and all seems to be fine, the problem I have is how to deal with the media upload, as the default WP method is to upload an item and then manually insert it into the post (and you can have as many inserted as you like). Where as I want users to be only able to upload one file per post and not have to insert the file into a post because the file itself is the post. They will also be able to upload a featured image.
Any ideas on how I can develop this? Thanks.
You could use WP upload methods to upload your file to the server. Then (depending on your upload's media type) you would insert HTML representation of the file into the post (e.g. parse a text file, create tag for image or embed a video).
If you want to see some working example, please let me know. I just outline the flow:
wp-handle_upload() to physically upload a file
wp_update_post() or wp_insert_post() depending on whether you're creating a new user post or editing existing one. Both methods require one argument - Post object. That's where you put your content (as a post_content field of course) and post data