parisK
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
| Status | Debate | Supporter | Voces | Mensajes | Caducidad |
|---|---|---|---|---|---|
|
Update custom fields using wordpress api
Iniciado por: parisK en: Toolset Professional Support |
2 | 2 | 3 years, 4 months ago | ||
|
Add Toolset view on existing template
Iniciado por: parisK en: Toolset Professional Support |
|
3 | 4 | 4 years, 3 months ago | |
|
Retrieve all child posts for a specific parent in relationship
Iniciado por: parisK en: Toolset Professional Support |
|
2 | 3 | 4 years, 6 months ago | |
|
Expose repeated field group in WP REST API
Iniciado por: parisK en: Toolset Professional Support |
|
2 | 3 | 4 years, 9 months ago | |
|
POST a many-to-many relationship CPT through WP API
Iniciado por: parisK en: Toolset Professional Support |
|
2 | 3 | 4 years, 9 months ago | |
|
Can’t expose relationship intermediary posts to WP API
Iniciado por: parisK
en: Toolset Professional Support
Problem: Solution:
add_filter( 'register_post_type_args', 'my_post_type_args', 10, 2 );
function my_post_type_args( $args, $post_type ) {
if ( 'couples' === $post_type ) {
$args['show_in_rest'] = true;
// Optionally customize the rest_base or rest_controller_class
$args['rest_base'] = 'couples';
$args['rest_controller_class'] = 'WP_REST_Posts_Controller';
}
return $args;
}
More about it on this reply https://toolset.com/forums/topic/cant-expose-relationship-intermediary-posts-to-wp-api/#post-2161249 |
|
2 | 5 | 4 years, 9 months ago | |
|
Create a view withe repeatable group
Iniciado por: parisK en: Toolset Professional Support |
|
2 | 6 | 4 years, 9 months ago |