Support

Account

Forum Replies Created

  • Hi John,

    I just wanted to let you know that as of yesterday our website works with Advanced Custom Fields instead of Simple Fields. With your help I was able to transfer the contents of all fields. Thanks again!

  • Hi John,

    Great, it works!!!!!

    I’ve filled the fields ‘tip’, ‘reactie’ and ‘metaschema’.
    Next I’ll try the other php-functions that are using SF.
    The ‘FB_photo’ is less important, so I’ll wait with that till the other fields are solved.
    A question: should I make posts like this Public or Private?

    Thanks again for your help,
    Irene

    FYI: the SF-field ‘metaschema’ is in our current website filled as below.
    When I copy-paste this to the corresponding ACF-field, it looses the returns after each day and displays as one long line
    (for the moment I’ve added <br /> in between each day).
    Dag 1-2: Tbilisi
    Dag 3: Kakheti
    Dag 4: Mtskheta, Stepantsminda
    Dag 5: Stepantsminda: Gergeti, Sno-vallei
    Dag 6: Uplistsikhe, Gori
    Dag 7: Chiatura, Kutaisi
    Dag 8: Svaneti: Mestia
    Dag 9: Mestia: Ushguli
    Dag 10-11: Batoemi
    Dag 12: Prometheus, Tskaltubo, Kutaisi
    Dag 13: Borjomi, Akhaltsikhe, Vardzia
    Dag 14: Vardzia, Tbilisi
    Dag 15: thuisreis

  • Hi John & John,

    Thank you for your last posts (I forgot to check the Notify box and only saw your replies this week…)
    I will transfer the contents of the SF-fields manually into ACF-fields.

    1) I have created a new ACF-group field, with the same fields and names as the SF-group field
    You can see 3 of the fields on the left side of the page https://www.blinireizen.nl/reizen/georgie-compleet/. Georgia Complete is one of the 84 example-programs we offer, the template for every example tour is the same. The fields REISSCHEMA (fieldname=reisschema), REVIEWS & REiSVERSLAGEN (fieldname=reactie), BLINI TIP (fieldname=tip) and SOCIAL MEDIA (fieldname=FB_photo).

    2) I have filled one ACF-group field manually, with the same contents as the corresponding SF-group.

    3) I have located the theme and all php-files where the SF-function is used (fortunately not that many).

    4) I have started adjusting the most important php-file (in which the left bar of the mentioned page is filled). BUt unfortunately I got stuck here. The current code says:

    <?php
    $meta_schema = simple_fields_get_post_value($post->ID, “reisschema”, true);
    $tip = simple_fields_get_post_value($post->ID, “tip”, true);
    $reactie = simple_fields_get_post_value($post->ID, “reactie”, true);
    $FB_photo = simple_fields_value(“FB_photo”);
    $FB_photo = apply_filters(“the_content”, $FB_photo);
    ?>

    I started with only 1 field and replaced the second line with:
    $tip = get_field($post->ID, “tip”, true);
    if( $value ) {
    echo $value;
    } else {
    echo ’empty’;
    }

    When testing, it says ’empty’. Probably I can’t use the parameter $post->ID in the same way as is done in the SF-function, but I can’t find in the ADCF-documentation how it should be done.

    Two questions:
    * can you tell me how to fill this parameter (I assume this refers to the number of the post, e.g. number 78 of our example programs.
    * If you can’t help me, could you advise me where to post this question? I think for someone who knows php this won’t be very difficult to solve.

    By the way, fortunately we also have a test-environment, so nothing can go wrong when trying.

    Thanks again!

  • Hello John or other users who know something about this topic,

    I have some questions regarding the solution described to migrate from Simple Fields to ACF5 fields.
    First of all: does this solution still work?

    Then: a long time ago I worked as a COBOL-programmer and I managed to execute step 1, 2 and 3 myself. But I fear steps 4 and 5 are too complicated for me.
    Is it possible to fill the new ACF5 fields manually? We (a travel agency) use Simple Fields to show extra information for every sample tour we offer (like day-to-day-itinerary, customer review, tips, see e.g. https://www.blinireizen.nl/reizen/georgie-commpleet/, left sidebar). We have 85 tours, with a maximum of 3 fields per tour, so it can be done manually without much effort.

    My last 2 questions concern step 7:
    How do you know in which templates and function.php Simple Fields is used? A simple search doesn’t seem to work.
    How should I call the AFC 5 function? It’s with the same parameters as for Simple Fields?
    An example from single-travel.php (which displays the left sidebar) is:
    $meta_schema = simple_fields_get_post_value($post->ID, “travel schedule”, true);

    Thanks, any help is welcome.

    Irene de Jonge
    Blini Reizen
    Netherlands

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