kieran223
Forum Replies Created
-
With the above test the form works.
I only get problems with the form if it’s within a custom post type.
But… I have since found out that if I add <?php wp_footer(); ?> to my custom post type template it all works as it should.
I’m not sure why this is, maybe it’s normal.
Thank you so much for all your help. I really appreciate it
Thank you again for your reply.
I have disabled all my other plugins, so I just have
ACF + ACF Pro 5.10.2
Advanced Custom Fields : Extended 0.8.8.5
Custom Post Type UL 1.9.2My ACFE short code is [acfe_form ID=”2090″] or [acfe_form name=”edit-review-page”]
I have tried directly calling the form via PHP only-
<?php global $current_user; if(is_user_logged_in() && $current_user->ID == $post->post_author){ // display form in PHP only acfe_form('edit-review-page'); }?>I have also stripped my custom post type template down, so it only contains the following:
<?php acf_form_head(); ?> <?php wp_head(); ?> <?php global $current_user; if(is_user_logged_in() && $current_user->ID == $post->post_author){ // display form in PHP only acfe_form('edit-review-page'); }?>and the upload button still isn’t working’ and I’m getting the same error in console.
I also tried it without `<?php acf_form_head(); ?> in the template, but this stops the Accordions from showing and working.
It also doesn’t work if I remove <?php wp_head(); ?> (This just removed my default theme styles. )
I also tried on a new install, only installing Kadence as the theme, and the 3 above plugins, it’s also doing the same thing.
Thank you again
If I insert it into the page template using
<?php echo do_shortcode(“[Shortcode’]”); ?>
It still does the same thing. (Not work)
But If I insert it into a page (Not the custom post type) using the Gutenberg short code block it works. But I can’t do it this way, as I need to show it to the logged in Author only.
Also, If I don’t add acf_form_head() to the template file, the styles don’t load and the Accordions doesn’t work. I’m using CPT UI to make my custom post types.
Thank you again
Thank you for the fast reply.
I have used ACFE to build the form.
I have then made an ACF to insert the short code, (Using the Wysiwyg Editor field type. This is the code I have used to display the form. (The form only shows to the post author (Admin role, so I have permission to use the WordPress media uploader)
<?php // check if current user is the post author global $current_user; get_currentuserinfo(); if (is_user_logged_in() && $current_user->ID == $post->post_author) { echo get_field('front_end_form_short_code',); } ?>I have just tested inserting the short code directly into the page and it works. So it looks like the problem is because I am using ACF Wysiwyg Editor to insert the short code.
Thank you again for the fast reply.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Success message not workingI inspected the page as you suggested, and I did have ” display:none ” I have no idea why or how it got there, but it’s all working now.
Thank you 🙂
This worked perfectly.
Thank you so much 🙂
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Success message not workingWhen I inspect the page, I can see the message within the code-
But it doesn’t display on the page.
I have changed to the default theme, and it’s also not displaying the success message.
Forum: Plugins
In reply to: [Booking Ultra Pro Appointments Booking Calendar Plugin] Conditional LogicSorry one more thing, Do you have a demo for the backend admin panel professional version?
Thanks