Support

Account

Forum Replies Created

  • What i am trying to do is changing the value of the field, in the sense that I want to change which checkboxes are selected for a particular post. Isnt update_field() used for that?

    I.e choice 1, 2 and 5 are checked for field named checkbox in post 4788. I would like to change this so choice 3 and 4 are selected instead.

  • Thanks for your suggestions. I will look into the different possibilities.

    One last question though – is it possible to get all fields of a certain field type? i.e. – all file fields (including those in repeater fields) from the post with id xx?

    Thanks!

  • Thanks. I guess that could work.

    However, each of my users only have one post attached. So what I was hoping to do, was something along the lines of getting an array of all fields from that particular post, and looking up whether the file id in question was present in any of those fields. Would this be possible? Please bear in mind, that the file could be present in a repeater field.

    Thanks for the amazing support so far,

  • Thanks for your suggestion. However, my problem is that I have multiple file fields on my post type. I need to run a query that determines whether the file in question is attached to one of them 🙂

  • Thank you very much for your big help. I have upgraded to PRO and everything seems to be working now 🙂

    I still need one small thing though. I have suceeded placing the uploaded files in a subdir to /uploads/ by using the mentioned code in my topic. Can I change the $uploads[‘path’] & $uploads[‘url’], so that the uploaded files end up outside my web root/www folder? upload_dir() seems to take ../ quite literally..

    Thanks!

  • @hube2 – your function is missing an underscore in order to work correctly. field_nameupload_prefilter should be field_name_upload_prefilter.

    CC.

  • Thanks. I’ve been wanting to buy PRO anyway, so that ain’t a problem 🙂

    Another question; can I somehow insert a “custom script field” in the backend? Ie, if I have created a tab, and under that tab, I would like to retrieve some comments based on specific metadata, or similar that requires coding. Could I insert something like that?

  • Might be a stupid question – but is it because I need pro version to use filters?

Viewing 8 posts - 1 through 8 (of 8 total)