pinksharpii
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Filter admin products by “on sale”omg I know I’ve had issues with NOT EXISTS in the past and I thought it was one of those instances again. But nope, I just can’t type today…thanks for the assist!
Just noting here my improved version of the code – the above doesn’t include posts that are totally unrestricted (where the _members_access_role) does not exist.
add_action( 'pre_get_posts', 'filter_resources_by_user_roles' ); function filter_resources_by_user_roles( $query ) { if ( is_admin() || !$query->is_main_query()) { return; } if ( $query->is_tax('resource_type')) { $query->set('meta_query', array( 'relation' => 'OR', array( 'key' => '_members_access_role', 'value' => wp_get_current_user()->roles, 'compare' => 'IN', ), array( 'key' => '_members_access_role', 'compare' => 'NOT EXISTS', ) )); } }
Thank you for digging into this.
The problem we’re having is they are receiving a lot of spam signup emails and the only way to add captcha to the form is with the WP plugin.
The form on the site now is just an HTML form that a prior developer had inserted in the template. I don’t know that we can add a captcha to the form when the POST URL the external Concon signup URL.
We are using 2.3.3.1
Yes that is the one. The client has not had a ton of budget to overhaul their site that was built using Magic Fields a few years ago.
It looks like this plugin does not work with Magic Fields installed. the map_to field is not getting stored in the form’s meta for the email field. It saves the meta correctly for other fields like First Name
It’s in the footer here.
https://thepaine.bdcstaging.com/
I don’t see the HTML for that field in the inspector or view source at all.The forms are being correctly associated with a list now in the Forms list view in the admin. https://snipboard.io/FvWC2y.jpg Not sure why it was delayed showing up. I’m able to submit the form without getting that strange error on the front end. It goes through and says thank you for subscribing even though there isn’t an email field to fill out.
And yes all the lists show up on the Lists page in admin.
Forum: Plugins
In reply to: [SVG Support] BUG: 2.3.17 strips all attachment meta dataJust commenting here too that we are having an issue with this function too. I’m using it to get the meta data of a PDF. Since a PDF does not have a width/height,it’s returning nothing.
I do believe the OP is correct in saying that the warning is coming from the missing Currency attribute. Markup Schema for Offers requires Currency. We are also seeing this issue on our client site.
Forum: Fixing WordPress
In reply to: Include page path in URL structure for posts?Okay cool that does work. I was afraid that would change the permalink structure for pages as well because when you do Plain that affects pages.
Forum: Fixing WordPress
In reply to: Can’t view home page of site in subdirectoryDisregard, I had a blank index.html hiding in my directory…
Forum: Plugins
In reply to: [wp-mpdf] Images increase load time too muchI don’t believe it’s a server issue. We’re running at 512m for memory and it’s on PHP 7 and it’s still taking a full minute to generate a PDF with a single 300×300 image. And only 2sec without an image at all.
As my comment above states, it happens on the default checkout page so it’s not exclusive to my custom solution. There are no errors that I can see either in console or on the server. If I go to the ?wc-ajax=update_order_review url like other forums suggest, I see the -1. So it’s not an ajax issue either. If I set theme to twentyseventeen and delete all other plugins, the issue still occurs.
I took out the code to modify the checkout URL. If you add a donation to your cart and go to the /checkout/ url, it works the first time you load the page but any time you go back after address data has been provided, it spins forever.
Okay. Ignore the fact that it’s VC. That’s not the issue. The theme writers (which don’t exist anymore) wrote a shortcode that a string gets passed to that is the WP_Query’s $args string. All I need to know is if and how I can pass some IDs in the post__in parameter and have WP process it as an array because it’s not documented anywhere. WP_Query largely uses an array, which is more flexible. But the shortcode uses the string method. This is a WP question.