parisK
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
| Status | Topic | Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Update custom fields using wordpress api
Started by: parisK in: Toolset Professional Support |
2 | 2 | 2 years, 8 months ago | ||
|
Add Toolset view on existing template
Started by: parisK in: Toolset Professional Support |
|
3 | 4 | 3 years, 8 months ago | |
|
Retrieve all child posts for a specific parent in relationship
Started by: parisK in: Toolset Professional Support |
|
2 | 3 | 3 years, 10 months ago | |
|
Expose repeated field group in WP REST API
Started by: parisK in: Toolset Professional Support |
|
2 | 3 | 4 years, 1 month ago | |
|
POST a many-to-many relationship CPT through WP API
Started by: parisK in: Toolset Professional Support |
|
2 | 3 | 4 years, 1 month ago | |
|
Can’t expose relationship intermediary posts to WP API
Started by: 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 | 4 years, 1 month ago | |
|
Create a view withe repeatable group
Started by: parisK in: Toolset Professional Support |
|
2 | 6 | 4 years, 1 month ago |