parisK
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
| Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
|---|---|---|---|---|---|
|
Update custom fields using wordpress api
Gestartet von: parisK in: Toolset Professional Support |
2 | 2 | vor 3 years, 4 months | ||
|
Add Toolset view on existing template
Gestartet von: parisK in: Toolset Professional Support |
|
3 | 4 | vor 4 years, 3 months | |
|
Retrieve all child posts for a specific parent in relationship
Gestartet von: parisK in: Toolset Professional Support |
|
2 | 3 | vor 4 years, 6 months | |
|
Expose repeated field group in WP REST API
Gestartet von: parisK in: Toolset Professional Support |
|
2 | 3 | vor 4 years, 9 months | |
|
POST a many-to-many relationship CPT through WP API
Gestartet von: parisK in: Toolset Professional Support |
|
2 | 3 | vor 4 years, 9 months | |
|
Can’t expose relationship intermediary posts to WP API
Gestartet von: parisK
in: 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 | vor 4 years, 9 months | |
|
Create a view withe repeatable group
Gestartet von: parisK in: Toolset Professional Support |
|
2 | 6 | vor 4 years, 9 months |