Support

Account

Forum Replies Created

  • Ok this problem is resolved. I took a new approach with a fresh mind.

    I searched the database for ALL meta_key’s with a value LIKE ‘resume’ (the name of the ACF field in question). I figured it was worth doing instead of using the ‘=’ operand.

    I found 2 references. One as ‘Resume’ and one as ‘resume’. The ‘resume’ key was from ACF and the ‘Resume’ key was an old key from a year ago before I switched over to ACF. It had a value of null. The ‘resume’ field had an ID value.

    Interestingly enough as soon as I deleted the ‘Resume’ record ACF started to work just fine.

    I know its an oddball situation but there was obviously some conflict with ACF getting the field from the DB with the same name but different case settings. Worth you looking into still.

  • I should add that I am running ACF 4.1.8.1 and WP 3.6

    I am also using the file feature of ACF on several other basic posts and pages all with no issues as well.

    I am starting to wonder if it may be related to the order of the add_action functions. Maybe I can run some test like that today to see if it makes a difference.

    UPDATE:
    Sorry what I meant to say is that I am using this feature on OTHER websites with basic posts and pages. And they all work fine.

  • Hey Elliot,

    Thanks for the reply. As far as all your questions are concerned. I have run quite a few tests already of which using the ID, Object and URL were part of that.

    In the admin side of things I can select the image through the ACF field from both the media library or upload a new one. If I upload a new one it get uploaded to the custom directory I assigned in my plugin file just fine. It even shows in the media library as well. And I can use the basic WP Media Insert button to insert the file into the post content. This works and displays on the admin and client sides.

    What is interesting is that when I select the file with ACF (using the ‘select’ button in the media library) the file seems to be assigned to the post / page. However if I leave the page and come back to it the ACF field is blank again.

    On the client / user side the file never seems to appear. It has a null value.

    As far as debuging: “Have you debugged the result of get_field()?” I have tried several of my own methods – including checking the DB fields with phpMyAdmin and in all cases it seems to be a null value for ACF. If you have a specific test you could suggest I would be more than happy to test it. I am quite adept at PHP and WordPress.

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