Support

Account

Forum Replies Created

  • Hmmm odd. Yeah I know where it should be, because it appears once I enable the_content. It’s just the page post type. Latest ACF etc.

    I’ve got a LOT of fields on the go but only two switched on and assigned to pages, the rest are disabled as they’re cloned into the main one, which is a flexible content field.

    I’ll try those functions you mention. Thank you.

  • Hey John

    Aside from looking in the database how do you get access to the revisions though? The revisions count/link doesn’t show unless the_content is included.

    Or am I being dumb here? I searched ways of accessing the link but came up short.

    Thanks
    James

  • Further to this thread, we’ve just had a client discover (to their horror) that ACF fields aren’t saved in WP revisions unless the_content field is visible and USED.

    Some info on how to get around this issue —
    https://www.sumydesigns.com/help-cant-find-revisions-wordpress-post-page/

    Having to show the standard content field on a page where we’ve made heavy use of Flexible Content is a real pain. Having to put dummy content into the_content in order for ACF to save revisions is an even bigger one.

    Is there some way around this? I realise this is more of a WP issue than ACF, but having to keep the_content on the edit page in order to save meta data revisions seems really inelegant.

    Thanks in advance,
    James

  • Bloody marvellous.

    I look forward to buying a developer license as soon as they’re available.

    Cheers

  • Use ‘ instead of “:

    <?php the_field('barcode'); ?>

    Any good?

  • Looking forward to it! Cheers.

  • The image-related sub-fields had disappeared from where you create them… eg.

    WP Admin > Custom Fields > “Front Page Boxes” > Flexible Content Field.

    They had also disappeared from Pages > Edit > Front Page > “Front Page Boxes” FCF.

    Yet, they still appeared on the front-end and the database (as above), until I pressed update.

    Anyway, I gave up trying to explain what was wrong and have just spent two hours creating it all again.

    Thanks for trying to help. There was obviously an error that corrupted it all, but not knowledgeable enough on the mechanics to put my finger on it.

    James

  • Yeah, it looks like some are still hanging about there, but several have disappeared entirely from the ACF editor and are not in the “add repeater” section:

    ACF Flexible Content - options missing

    Yet, those broken fields still appear in the front end, as blank boxes:
    [http://www.]ellaberthoud.com/2013/ – and in the postmeta in the database, as outlined above.

    Is there any way of retrieving this field data? Can you see it in the mysql database? Should I just give up and start again?

    Thanks
    James

  • This reply has been marked as private.
  • This reply has been marked as private.
  • @elliot

    wp_postmeta for post id 4 (my homepage):

    a:26:{i:0;s:11:"large_image";i:1;s:11:"small_quote";i:2;s:11:"small_image";i:3;s:11:"large_quote";i:4;s:14:"portrait_image";i:5;s:14:"portrait_image";i:6;s:11:"small_image";i:7;s:14:"portrait_image";i:8;s:14:"portrait_image";i:9;s:11:"large_image";i:10;s:7:"twitter";i:11;s:9:"listening";i:12;s:7:"reading";i:13;s:9:"news_feed";i:14;s:11:"large_quote";i:15;s:16:"recommended_read";i:16;s:8:"big_link";i:17;s:11:"small_image";i:18;s:16:"little_link_wide";i:19;s:11:"little_link";i:20;s:11:"little_link";i:21;s:11:"little_link";i:22;s:8:"big_link";i:23;s:11:"little_link";i:24;s:8:"big_link";i:25;s:11:"little_link";}

    That is the correct order they are supposed to display – note large_image, followed by small_quote – so I guess all is well in terms of the database.

    Looking forward to your thoughts!

    Thanks
    James

  • Hi Elliot

    Here’s the process I went through:

    1. Added a new field with a select drop down (with 1,2,3 as the options). Stuck “1” in the default field, saved and then added a field of this type to the homepage. At this point I saw the error (debug mode true) for the first time. Images were still there. I commented out my code pulling in the new field and the error (as outlined by the original poster) disappeared. Figured there was an issue with using “1” as the default number. Deleted the select drop down sub field and created a radio one instead, with no default declared. Refreshed the post editor, chose the radio button options that were needed and saved. Error was there again on front end.

    2. Googled the error, found this thread. Downloaded the latest version of ACF and uploaded through the plugins uploader in WP admin. Error on upload as plugin already exists. Go to FTP, rename old ACF folder and upload unzipped new files. Go to homepage, errors gone, all images gone. Rename new ACF folder, go to plugins, Add new, find ACF, install… No change.

    3. Go to page editor, half the fields are missing from the list, no fields with image field available from flexible field add panel. Go to ACF editor and my flexible field, all fields with image includes gone. Do not, at any point press save/submit, so am sure the data is still there – especially as the homepage is still showing the empty space where the fields were before this happened. Go back to this thread, find original code (that the update fixed) edit api.php file to display old code, refresh homepage, errors back, images still broken. Undo api.php change.

    To answer your questions:

    If I go to create a new flexible field it will not let me create ANY sub fields. If I go to edit my existing flexible content field I cannot add any new fields. The duplicate, etc. links on the left are gone too. In the post editor, all flexible content fields that have an image field are gone.

    I can’t check the db right now as need to get access, but the fact the boxes still appear in the page (and the text data shows for those entries, just not the images) would suggest to me that the data is still in the db.

    I hope that helps. It’s 1am so I’m. Going to sleep, back online in 7/8 hours. You’re welcome to login to my site if you want. Just send me an email.

    James

  • In case it helps: [www.]ellaberthoud.com/2013/

    That grid of boxes is controlled by a flexible content field.

    All the blank ones were images! Every single image related field has disappeared in the backend and there is no sign of them in the front.

    Cheers

  • Hi Elliot

    Major problems here.

    I was seeing the error too in debug mode, so downloaded the new version you pushed to WP.org.

    I then go to my site and 50% of the fields on a massive flexible content field have disappeared from the page editor and ACF editor – they’re all fields that have image fields.

    HELP!

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