avansisI-2
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Toolset chat support ticket by avansisI-2 – 1607435670
Commencé par : avansisI-2 in: Chat Support |
|
1 | 2 |
Il y a 4 years, 11 months
|
|
|
Create two views with same content
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 11 | Il y a 4 years, 11 months | |
|
Custom field taxonomy register in api
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I would like to add the latitude and longitude values of a custom taxonomy address field in my taxonomy REST API response. Solution: Use the types_render_termmeta function to render an address field with PHP. Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#address |
|
2 | 3 | Il y a 4 years, 11 months | |
|
Create post relationship using PHP
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I would like to connect two posts using PHP and a Post Relationship inside a custom REST API route. Solution: Use the toolset_connect_posts API to connect two posts programmatically. Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts |
|
2 | 12 | Il y a 4 years, 11 months | |
|
View with relationship
1
2
3
Commencé par : avansisI-2 in: Toolset Professional Support |
|
3 | 38 | Il y a 4 years, 11 months | |
|
Cannot change author to custom user in custom type post.
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 3 | Il y a 4 years, 11 months | |
|
Create Message System with Message Module
Commencé par : avansisI-2 in: Soporte profesional de Toolset |
|
2 | 8 | Il y a 4 years, 11 months | |
|
Information in USER API with field custom
1
2
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 16 | Il y a 4 years, 11 months | |
|
phone field unique in the user registration
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 9 | Il y a 4 years, 11 months | |
|
View only show child custom type
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 2 | Il y a 4 years, 11 months | |
|
Problems with template content
Commencé par : avansisI-2 in: Toolset Professional Support |
1 | 2 | Il y a 4 years, 11 months | ||
|
activate an action when loading a page with form, without submit
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 8 | Il y a 4 years, 11 months | |
|
help with support ticket
Commencé par : avansisI-2 in: Chat Support |
|
1 | 2 |
Il y a 4 years, 11 months
|
|
|
expose related posts in REST API
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: Solution: I used the following and slugs:
function get_parent_page_for_api_bonos( $object ) {
//get the id of the post object array
$post_id = $object['id'];
//return the post meta
return toolset_get_related_post( $post_id, 'parent-cpt-child-cpt');
}
add_action( 'rest_api_init', 'create_api_posts_meta_field_bonos');
function create_api_posts_meta_field_bonos() {
register_rest_field(
'child-cpt',
'parent_page',
array(
'get_callback' => 'get_parent_page_for_api_bonos',
'schema' => null,
)
);
}
Relevant Documentation: |
|
2 | 7 | Il y a 4 years, 11 months | |
|
I am having problems with the relationship in the API
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I am having problems with the relationship in the API, how to get related parent post in PHP codes. Solution: I suggest you follow our document to setup the PHP codes. |
|
2 | 6 | Il y a 4 years, 11 months |