pzh20
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Showing Taxonomy options on formSorry Konrad, I meant to add the third image, finger trouble I’m afraid. Please have another look.
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Showing Taxonomy options on formHi Konrad, welcome back,
I have a taxonomy associated wit a field group as seen in the 2 images attached. I need to show the taxonomy on the form to add a Family Member field group, but I do not see an option on the create post form.
Regards and thanks
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Display Image when selected for uploadI’ve solved this
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Date picker being rendered as a text fieldPlease close this and remove as it works on the frontend, but bot whe previewing the page from within the builder
Sorry
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Date picker being rendered as a text fieldAfter a little further investigation, I see that the date field looks identicle on an Elementor page, but there, when clicked opends the date picker. The page I’m now working on in in Bricks Builder and although looking the same, nothing happens when the field is clicked.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Hook called over and overCan you explain what is the difference between ‘acfe/form/submit_post/form=my_form’ and ‘acfe/form/submit_form/form=my_form’ please?
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Hook called over and overThanks for this, however, after adding if (is_admin()) { } to wrap the code in my acf/save_post, yor hook acfe/form/submit_post isn’t being called at all!
Here’s my code;
add_action('acfe/form/submit_post/form=add_family_member', 'front_end_after_save_post', 10, 4);
function front_end_after_save_post( $form, $post_id ){
acf_log('Inside FAM - Complete Family Member Title and date fields (acf extended form)');
$firstname = get_field('first_name',$post_id);
$middlenames = get_field('middle_names',$post_id);
$lastname = get_field('surname',$post_id);
$dob = date("d/m/Y", strtotime(get_field('date_of_birth',$post_id)));
$dod = date("d/m/Y", strtotime(get_field('date_of_death',$post_id)));
if($dod) {
$dod = '> ' .get_field('date_of_death',$post_id);
} else {
$dod = null;
}
$post_title = implode(' ',array_filter([$firstname,$middlenames,$lastname,'-',$dob,$dod])) ;
acf_log('Inside FAM - ' . $post_title);
}Is it possibly something to do with the priority which is set to 5 on the acf/save_post?
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Hook called over and overKonrad,
Can you confirm something about how I should work when using ACFE vs just ACF hooks.
Before I started using ACFE, I use the acf/save_post hook to manage several different aspects of validation and field manipulation across several field groups, using
if( get_post_type( $post_id ) == ‘my_cpt’ ) {….
}
if( get_post_type( $post_id ) == ‘my_other_cpt’ ) {…. etcalso, I had 2 versions of this snippet, one for ACF in the back-end and a similar version for Frondend Admin for ACF, using it’s version of the acf hook.
Now with ACFE, I take it I should use your version for your frontend forms, but when trying to keep the ACF backend version it’s currently failing. Should I still follow this approach (and fix the backend version) or do you recommend another option?
Many thanks in advance
Pete
Thanks for this, and I hope you don’t think I was being critical, but even in technical documentation, and I’ve seen a loto of it in my 50+ years in IT, there might be a single line of explaination, which you’ve given here.
I assumed as such, but if then I have a problem, is it my assumption that’s wrong.
In the main I agree with you that FB an YT are not the best place for a developer, although there are people with a lot more development experience that use and contribute to these platforms, and ‘birds of a feather, stick together’ and I’ve found a move towards more developer solutions.
Anyway, thanks for the clarification, and your great plugin.
Regards
Pete
P.S, Is there a way to render a field ‘disabled’?
Sorry, also, when I try and ‘render’ the password field it does noth show on the form.
Konrad, I wondered if you saw my recommendation of your plugin over on the WPTUTS facebook group, an Paul Charlton’s comment about struggling with the documentation and examples?
Well, I’m having the same problem trying to use the validation hook. The example you pointed me to mentions 3 different actions. I’m assuming I should only be using one, but the document doesn’t make it clear. Can you help?
Manyt thanks
Pete
Forum: Plugins
In reply to: [Code Snippets] How do I interpret thgis errorI’m afraid that’s the debug logger shows, again this morning I get the same message
Plugin:?Code Snippets
File:?/wp-content/plugins/code-snippets/php/snippet-ops.php(582) : eval()’d code
Line: 8regards
Pete
I suppose my porblem is that I’ve not worked with such a barebones toolset. I’ll have to change my way of thinking.
So, can I check if the email is already in use?
Many thanks
I thought it was working, but look at this
Thank you Konrad, I did read that but as it didn’t mention fields I was dealing with, I assumed it wasn’t the problem. Anyway, I’ve down graded and it works. Another thing on your list to look at lol
Cheers
Sorry, I must have added the password field to your field group and form, but as you can see, I cannot assign it in the load or save tabs.
I suppose it’s just me not understanging again, can you have a look at this and let me know what I’m doing wrong please Field-Groups-?-The-Harrisons-Website-—-WordPress.mp4
Mant thanks
BTW, when clicking the drop down for password, I cannot enter anything into that field.