Support

Account

Home Forums Add-ons Repeater Field (again) Uncaught ReferenceError: wp is not defined Reply To: (again) Uncaught ReferenceError: wp is not defined

  • Hi,

    I had this same problem (can’t add filles, dont show visual editr), but in my case solution was easy.

    Please check your footer code:
    <? wp_footer(); ?>

    or if you use custom template
    <?php get_footer(); ?>

    I use the same version of WordPress and ACF
    Meyby this is solution for this problem.

    If you need, my all code:`/* Template Name: Dodawanie zlecenia */ ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;
    <head>
    <?php acf_form_head(); wp_head(); ?>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
    <title>Nowe zamówienie – Drukarnia DPI</title>
    <META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW”>
    <link href=”<?php bloginfo('stylesheet_directory'); ?>/css/logowanie.css” rel=”stylesheet” type=”text/css” />
    <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic&#039; rel='stylesheet' type='text/css'>
    <?php
    $args = array(
    'post_id' => 'new',
    'field_groups' => array( 204 ),
    'submit_value' => 'Realizuj'
    );
    ?>
    </head>
    <body>
    <?php acf_form( $args ); wp_footer(); ?>
    </body>
    </html>`

    Sorry for my english.
    If i’m just stupid and only I forget about footer sorry for hopes.
    In my country now is middle of night