Skip Navigation

[Closed] Using the image upload code of toolset in admin on my own code

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 4 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1798107

Tell us what you are trying to do?
I would like to use the code that you have in the admin. When I create a custom field "image", there is a upload bouton and input field that is created by toolset. Is it possible to use that code else where. I'm building my own "admin" part for a custom post type I would like to create an upload button like you have with your image custom field.

#1799435

Hello, there's no way to leverage back-end Toolset code elsewhere in the admin other than to create an "upload" field with Toolset. You can create your own custom "upload" or file upload field with Toolset Types and apply it to any other custom post type to display an "upload" field in that post type editor page. Will this not work for your site's requirements? If you explain further, I can try to figure out a way to use Types to your requirements.

#1799439
Screenshot 2020-10-04 at 16.50.49.png

I made my own "admin" page to edit some complex keywords stuff and subtitles and so on. So I'm trying to use the admin editor page as little as possible as it's more convient to have all that I need on my custom page.
Here is an exemple of this custom admin page. What I would like to do is use your code to display the upload field that I get when I'm on the editor page.

#1799449

and also, I have a image type that is a repeating field and you have a nice code that makes it possible to delete or add an image, that could be useful to use it on my custom admin page.

#1799535

There's really no way to use Types field code unless you're on a post editor page, or if you're in the User profile page (for User fields). So unless you're creating a custom post type editor page in wp-admin, you won't be able to use Types fields easily. There's no open API, for example, or adding those fields in a custom theme admin page.

The topic ‘[Closed] Using the image upload code of toolset in admin on my own code’ is closed to new replies.