Igor Ilgiyaev
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection for Contact Form 7] Redirection and WPMLI found the issue and it was not the plugin or WPML
The client add some code that blocked the redirect.Just of this changes my startup got problems :-(((((
Now I need to change the code I add in the function file that sends only per country and genre selection.Forum: Plugins
In reply to: [WooCommerce] recent structured data errors (20th feb)Those are not passed ??
Missing field “aggregateRating”
Warning Missing field “review”
Warning Missing field “brand”
Warning Missing product ID
Warning Invalid value type for field “availability”This is passed ??
Missing field “priceValidUntil”It make sense.
So how it is working in 1.7.2 like I showed you earlier?
I immediately publish the post and it sent out as supposed to be.I think I know the problem
$bnfw = BNFW::factory();
remove_action( ‘pending_submissions’, array( $bnfw, ‘on_post_pending’ ), 10, 2);This code is cancels the action of sending and it changes it to pending.
What I need is that after a user submits it will send automatically.From the last code I FALSE the title and content and use only acf fields and inside the function page I created a code that adds the acf field called “title” to the post title after submit.
- This reply was modified 5 years, 9 months ago by Igor Ilgiyaev.
yes I did tried it and the post is published but not sent
This is the code that I use to send emails
and it works great on 1.7.2
If you need access I will send you through the Priority Supportacf_form(array(
‘post_id’ => ‘new_post’,
‘post_title’ => false,
‘post_content’ => false,
‘new_post’ => array(
‘post_type’ => ‘vacation_place’,
‘post_status’ => ‘publish’
),
‘return’ => ‘https://www.gig-jockey.com/travel-sent’,
‘submit_value’ => ‘Send’
));$current_user_id = get_current_user_id();
$current_user_country = get_user_meta( $current_user_id, ‘user_country’, true);
?>
<span style=”display:none;” data-current-user-country=”<?php echo $current_user_country; ?>”></span>
<script>
jQuery(function( $ ) {
var current_user_country = $(“span[data-current-user-country]”).data(‘current-user-country’);
var country_field = $(‘#acf-field_5929c1718c65c’);$(‘#acf-form’).on(‘submit’, function() {
$(‘.country-err-msg’).remove();
if(country_field.val() === current_user_country) {
country_field.after(‘<div class=”acf-error-message country-err-msg”><p>You can not choose your own country</p></div>’);
return false;
}
});
});
</script>I do have the SMTP plugin and the Emails Log is not showing that an email was sent.
Sorry, But its not working.
It’s not sending emails- This reply was modified 5 years, 9 months ago by Igor Ilgiyaev.
I’ll try to use the link you provided on the acf even i didnt used it before.
and how did it worked without it?
Yes I use WP5.2
and Post SMTPWhen a user creates a a post from acf front end its not sending( non admin )
Updated – Sorry still not showing the second
you can check it by yourself and see it is not working.
https://www.stier.co.il/bake-and-cake/from-the-press/Even If i add on both the same link its shows only the first one.
If i switch between them only the first works and the senod not.
I have inserted both images the same link and only the first works.I have changed to what you suggested and its still not showing and giving this error: Uncaught TypeError: jQuery(…).imagesLoaded is not a function
jQuery(‘.gallery1’).imagesLoaded(function () {
jQuery(‘.gallery1’).masonry({
itemSelector: ‘.item_margin’,
isAnimated: true,
isFitWidth: true
});
});