Forum Replies Created
-
AuthorPosts
-
December 4, 2023 at 11:04 PM in reply to: ✅504 Gateway Time out on every update action on a cpt #44010
EddyPiV
ParticipantPeter, it happens only with 1 specific cpt, all other post types are working properly.
But you're actually right, it's caused by another plugin. Deactivating it solved it.
I'll contact them to act on the errors in the debug.log.Thanks.
EddyPiV
ParticipantThanks Peter, all fine now.
EddyPiV
ParticipantHi Peter, thanks, that almost works.
It just, if post.fan_profile is empty, then the value of the most recent occurrence is returned.
How to avoid that?EddyPiV
ParticipantJust to add, to demonstrate that {{ spending_post.amount }} is correct: I tested by taking out
name: '{{ post.fan_profile }}', and the amount was shown for each fan.November 28, 2023 at 4:41 AM in reply to: ✅The relationship in View thru Shortcode doesn't get shown #43952EddyPiV
ParticipantHi Peter,
With your help I managed to get it working.
Thanks a lot, regards.
November 8, 2023 at 12:35 AM in reply to: ✅How to show the number of published posts of a post type? #43765EddyPiV
ParticipantThanks a ton, Peter.
Works nicely!EddyPiV
ParticipantFound it, I saw this thread: https://support.metabox.io/topic/custom-field-content-no-longer-editable-viewable-in-wordpress-admin-area
August 28, 2023 at 1:53 AM in reply to: ✅Redering for only post content area repeats the display of the posts #43058EddyPiV
ParticipantThanks Peter.
You have a better memory than I...
I managed to get it working.
February 23, 2023 at 6:56 PM in reply to: ✅Can the standard pagination bet set to 12 posts per page? #40703EddyPiV
ParticipantPeter, I took out the setting for the categoy, so that the default template would be used and not the view.
Also 404 error.
Changed to default WP theme, same issue.So nothing to do with MetaBox. Let's close this ticket, I'll contact my WP helpdesk.
EddyPiV
ParticipantPeter, not sure you understood me.
Archive and Search results are working fine. But the same settings are not working for the Categories.
https://share.getcloudapp.com/v1uP5nYEIt says "Page not found"
EddyPiV
ParticipantCan this topic be marked as "open"?
And can I pls get a response?Thanks.
EddyPiV
ParticipantPeter,
I understand the $GET['field_id1'] gets me the value of field1.
My question is which variable to use in the function to apply the fieldname for which the remote validation is set up.
In my case I have various fields that need to be checked for "forbidden-words" (and they are not called "field1")
https://share.getcloudapp.com/JruyWOQBApologies if I'm not using the proper vocabulary, but I expect you to try to understand a no-hardcore developer.
Looking forward to your help.
EddyPiV
ParticipantHi, I see this topic is marked as resolved, but I hope to get an answer on my last question anyway.
EddyPiV
ParticipantPeter, I'm struggling with the connection between validation rule set for the field and the action in functions.php, and back to the custom error message.
The documentation mentions
add_action( 'wp_ajax_my_action1', function () { // Get the field value via the global variable $_GET if ( $_GET['field_id1'] === 'something' ) { echo 'true'; // Valid } else { echo 'false'; // Invalid // or // echo 'This value is invalid, please try again.'; // Custom error message } die; } );How to replace the $GET['field_id1'], as the action is to be performed on the current field the validation is defined for.
According to he reference you gave for the regex documentation (thanks for that!) the action should contain something like
'$pattern = "/....|....|..../";
echo preg_match($pattern, 'current field');'So to my understanding the if-else statement needs to be replaced by the echo statement, right? Then how to connect to the current field?
-
AuthorPosts