davidtauriello
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Forms have stopped working; editor layering problemTakayuki – we’ve also updated our function to prevent it from running on /wp-json/contact-form-7 pages, so this support thread can be closed.
Forum: Plugins
In reply to: [Contact Form 7] Forms have stopped working; editor layering problemTakayuki – it looks like the z-index of the Contact7 popup is exceeded by a class in BadgeOS plugin that we also use, so we’ve added an override to css on the admin side:
div#contact-form-editor.ui-widget.ui-widget-content { z-index: 99999 !important; }
Forum: Plugins
In reply to: [Contact Form 7] Forms have stopped working; editor layering problemTakauyki – thanks for your reply; we’ve identified the first issue (forms not available for users who are not logged in). We have implemented a function (see below) to prevent visitors who are not logged in from seeing user detail like this: https://www.rollingstone.com/wp-json/wp/v2/users
What WP REST API endpoint is Contact Form 7 using – ? – we’d like to explore the possibility of excluding it from our function.
The second issue is not resolved – it is related to editing the forms and the popup appearing under the form – here is a picture: https://files.xbrl.us/images/popup-wpcf7-problem.png – let me know if you have any thoughts about this.
add_filter( 'rest_authentication_errors', function( $result ) { // If a previous authentication check was applied, // pass that result along without modification. if ( true === $result || is_wp_error( $result ) ) { return $result; } // No authentication has been performed yet. // Return an error if user is not logged in. if ( ! is_user_logged_in() ) { return new WP_Error( 'rest_not_logged_in', __( 'You are not currently logged in.' ), array( 'status' => 401 ) ); } // Our custom authentication check should have no effect // on logged-in requests return $result; });
Forum: Plugins
In reply to: [Contact Form 7] Forms have stopped working; editor layering problemthis issue affects most forms on our site.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Sorting by custom field date and post date?Thanks for this htausch! Any idea how to use this in an index where there are several post types and only one of them uses ACF as the date that should be considered for sorting – ?
David
Forum: Plugins
In reply to: [WP Ultimate Post Grid] choose which isotope is 'default' on loadBrecht – thanks for your quick reply; adding this as a premium feature would sell it to me in a heartbeat.
David
whoops – posted to the wrong plugin!