I need to display 2 lists of posts for one of my clients:
The “All posts from the last month” I can easily achieve with this plugin, but I can’t seem to be able to achieve the “All future posts” part.
The current date filter allows us to use before, after and between filters, but all of those are based on a specific date you select on the calendar.
How about, alternatively from selecting the date on the calendar, I could also select “Today” and that would be a dynamic date always based off the current day.
In order to achieve the use case, I actually had a custom version of this plugin with this piece of code in the process_date_range function:
case 'in-future':
return array(
'after' => 'today'
);
However, I got a bit tired of adding it after every each plugin update.
Let me know if something like this it would be possible, or if you have any other idea on how I could solve this “future posts” use case
Thanks and keep up the awesome work!
]]>What I did / How to replicate
On the website I am trying to have a layer that is available on every page but is displayed only if the user clicks a specific anchor link. My approach is to add the Otter popup block to a footer widget and set it up to get triggered by an anchor link that is available in the navigation menu. So each time the user clicks the “Contact” anchor link (href=”#contact”) the popup appears and shows contact information.
I successfully set this scenario up but experience the issues mentioned above.
]]>Is it possible to create filters based on a custom attribute with a dynamic value that varies from the product currently displayed?
For example:
I have a “T-Shirt” product with Attribute – Color and Value – Blue.
– The slider will only display blue T-shirts under this product…
I would like to apply the same method to the deepest level category.
For example:
The product is in the category “Clothes > Men > T-Shirts”.
– The slider will only display Man T-Shirts under this product…
Thanks.
]]>Is it possible to create filters based on a custom attribute with a dynamic value that varies from the product currently displayed?
For example:
I have a “T-Shirt” product with Attribute – Color and Value – Blue.
– The slider will only display blue T-shirts under this product…
I would like to apply the same method to the deepest level category.
For example:
The product is in the category “Clothes > Men > T-Shirts”.
– The slider will only display Man T-Shirts under this product…
Thanks.
]]>add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
//do things with fields
...
return $fields;
}
But this plugin is way more intuitive, I want to use it! But I have one question:
Can I add default value to the billing_first_name which will be based on wp_get_current_user();
?
On my custom code I mentioned before, I was able to do this:
$current_user = wp_get_current_user();
$fields['billing']['billing_first_name']['default'] = esc_html( $current_user->user_firstname );
and it worked very well.
But I want to get rid of my code and use only this plugin, can I add these “dynamic” default values?
Unfortunately, I’m stuck to show the price on duration and currency selection by the user. Is there a way to show TEXT based on selection or user input in forms? Let me know how to take it to the completion of my pricing table. BTW I’mm using Elementor PRO and this is my first post. Thought of posting here thinking this must be a general feature.
Thank you,
Ryan
My use case is that I want users to enter an answer to a question which must be correct before the form can be submitted. I tested your plugin and know that this is possible.
However, I want to allow site members to add their own question/answer key pair as part of their membership. Site members would have a custom field(s) in their account area where they can enter their question/answer key pair.
What I’d like to do is have your plugin dynamically pull in the answer into the Regex validation based on the user id?
For example, User #10 could have a question from their custom meta field “What color is a stop sign?” (this would be on the webpage and not GF) and the answer is “red”. When a site visitor goes to the GF form to answer the question, their answer would be validated by your plugin.
Is it possible with a little code snippet to dynamically pull a validation pattern into your plugin?
]]>email*
to be used in the “To” address. When I prefix it with hidden it doesn’t validate.
In my case it defies the objective which is having a form that’s pre-populated with an unchangeable email address to a specific recipient. I don’t want the user on the front end see the email, nor be able to change it.
The only way is using css to collapse/hide the input. But that’s inelegant and allows robots scrape the email address.
Is there a solution? Thanks.
]]>A lot of thanks for the plugin.
Is there any way to set the default values of select, checkbox… using the values of a mysql query? This way, the values would be different depending on the user or any other variable. It would be very usefull for me.
Thanks.
]]>