IoClaudio
Forum Replies Created
-
After using this plugin I can say that the answer to all these questions is yes.
Forum: Fixing WordPress
In reply to: How to associate tabular data to a custom post?Hi,
at the end I used this plugin that does what I need: https://it.wordpress.org/plugins/advanced-custom-fields-table-field/Forum: Plugins
In reply to: [Table Field Add-on for ACF and SCF] How to prefill the Table field?Forum: Plugins
In reply to: [BA Book Everything] Button save disappears after a few secondsI have disabled all the plugins only “BA Booking Everything” is enabled and the problem persists. Is the plugin compatible with WordPress 5.3.2?
Thank youForum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Dependent select boxes with ACF@jainilnagar Thank you very much I think that this article will help me, I’ll let you know. Thank you very much.
Forum: Fixing WordPress
In reply to: How to associate tabular data to a custom post?@bcworkz thank you for your answer.
For example, the event could be “National fencing tournament 2020”.
This event will take place from the 2 March to the 15 March 2020, the rows of this event are:
2/3/2020 | Male sword |…
3/3/2020 | Female sword | …
4/3/2020 | Female saber |…Each of them isn’t an event, you can call it subevent, but almost all the properties of these subevents are shared with each other.
Yes, I could use a JSON in a meta-tag to store the data, it is a good idea.
It will be easy to retrieve this data with the related event and show them with the REST API.The problem now is how to let the operator add this data from the back-end (WordPress).
Which direction should I take to modify the content-type?cld
Forum: Developing with WordPress
In reply to: How to intercept the saving of a post to add a metatag?Thank you @svenbolz following your suggestion I’ve solved in this way:
add_action( "save_post_to_book", 'action_save_post_to_book', 10, 3 ); // define the save_post_to_book callback function action_save_post_to_book( $post_id, $post, $update ) { error_log($post_id); error_log($update); error_log(json_encode($post)); .... };Thank you very much.
cld
Thank you very much for your time.
Yes, I can confirm that disabling the WP Event plugin the edit page of BA Booking Everything works well.
However we need that plugin too, so I have to find a way to solve the problem.Thank you very much for your support.
cld
I’ve seen that the problem is another.
The address is saved, but on the edit page of the Booking Object I can see one address section for each category.
So you have to fill the right one.
I have defined 5 categories and, on the edit page, I can see the fields of all them.Something doesn’t work, probably selecting a category should hide the fields of other categories but this isn’t happening.
Probably the version 1.3.9 of the plugin isn’t compatible with WordPress 5.3?Forum: Developing with WordPress
In reply to: How to access this object returned by WP Rest Api?I still don’t know where the token are stored, however I’ve added this check to my code:
$loggedUser = wp_get_current_user(); $loggedUserId = $loggedUser->data->ID; if ($userId != $loggedUserId) { $e1 = 'Invalid user'; return new WP_Error( $e1, __($e1), array( 'status' => 500 ) ); }Forum: Plugins
In reply to: [JWT Authentication for WP REST API] Error jwt_auth_bad_iss only with HttpsI’ve solved.
The problem was that I was calling:
http://mysite/wp-json/jwt-auth/v1/tokenwith HTTP
and I was calling:
https://mysite/wp-json/em/v1/useredit
with HTTPS.
I call both with HTTP or both with HTTPS it works.cld
It seems that I have to install tje JWT plugin, because default API allows only authentication with cookies:
https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/Forum: Plugins
In reply to: [BA Book Everything] Booking object geolocationI’ve seen there is an Adress section in the booking object.
Forum: Plugins
In reply to: [BA Book Everything] How to translate objects and categories?Ok, thank you I will try it and I will let you know.