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”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<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' 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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.