I’m afraid you understood the issue better than you thought ๐ This was definitely the problem.
Sry for not being more clear in my description.
And thanks for a lovely plug-in; when I realized that one could use repeaters within repeaters I was so thrilled!
Well I’d say it is more a matter of how deep one is into The Code, than age (I’m 26) ^_^
Ah, one day I hope to be as paranoid as you ๐
Thanks, I can’t believe I missed this ๐
Actually it worked by just changing the settings!
Cheers
No I understood what you meant, and couldn’t find the duplicate, was just curious if there was anything else in the functions.php that caused the problem.
And changing $thePost seemed to do it for me ๐ cheers!
I still seem to have problems though with the location rules ๐
I couldn’t find any duplicate, this is my functions.php file, is anything else weird in there?
Also I’m experiencing great problems echoing the custom field value into a variable. I am using a Field name of “textbild” Here is the code:
<div class=”contentCon clearfix”>
<?php global $post;
$id = ‘4’; //set the post id here
$thePost = get_post($id); //get the post
setup_postdata($thePost); //setup the post
$textbild = get_post_meta($post->ID,’textbild’, true);
?>
<h2><?php echo get_the_title($ID = ‘4’); ?></h2>
<div class=”contentText”><?php the_content(); ?></div>
“/>
</div>
I’ve also tried:
$textbild = the_field($post->ID,’textbild’, true);
&
$textbild = get_field($post->ID,’textbild’, true);
Thanks for your time mate!
I tried to delete a field group, and that removes it from the edit page. However changing the location rules does nothing, and only one of my fields loads correctly on one of my pages (in editing mode)
Edit: I got the rules working, by chaning around the settings and updating the group. Now they load correctly on the pages I set the rules for, however each field group that I have created, and shouldn’t appear on edit screen appears anyways, but never completes load (as seen on screen shot).
ps. this is obviously a lesser problem, since now I can at least use the custom fields :), however it would be neater for my customer if they showed correctly
Sry, here is a new picture of that: “รคr lika med” is Swedish for “same as” FYI.
Yes, I can’t find any errors
EDIT: I am getting something under “All” (not errors) in the console log (using Firebug for Firefox)
The file it’s regarding is: POST http://utt.se/wp-admin/admin-ajax.php
The code showing: {“wp-auth-check”:true,”wp-refresh-post-lock”:{“new_lock”:”1377241874:1″},”server_time”:1377241874}
The file keeps on reloading and reloading
Of course, sorry, should’ve done that right away. However I’m using a swedish version of wordpress, also I zoomed out a bit for better overview just so you know.
thanks for your time!
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.