avansisI-2
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 |
|---|---|---|---|---|---|
|
Url validate without http or https
Gestartet von: avansisI-2
in: Toolset Professional Support
Problem: Is it possible that the url field does not require http or https to validate? Solution: Please check the URL definition: https://en.wikipedia.org/wiki/URL URI = scheme:[//authority]path[?query][#fragment] If you are using URL validation setting, then the "scheme" is required for URL value Relevant Documentation: |
|
2 | 3 | vor 4 years, 11 months | |
|
Email notification doesnt work
Gestartet von: avansisI-2 in: Toolset Professional Support |
1 | 2 | vor 4 years, 11 months | ||
|
Relationship in api rest
1
2
Gestartet von: avansisI-2
in: Toolset Professional Support
Problem: I would like to add related parent post information to the response of a REST API endpoint for the child post type. Solution: Use the following custom code as a guide for adding related post information in a custom registered field in your REST API response for the child post type:
add_action( 'rest_api_init', 'create_api_posts_meta_field_promociones');
function create_api_posts_meta_field_promociones() {
register_rest_field( 'promociones', 'parent-page', array(
'get_callback' => 'get_parent_page_for_api_promociones',
'schema' => null,
)
);
}
function get_parent_page_for_api_promociones( $object ) {
//get the id of the post object array
$post_id = $object['id'];
//return the related comercio post ID
return toolset_get_related_post( $post_id, 'comercio_promocion', 'parent');
}
Relevant Documentation: |
|
2 | 23 | vor 4 years, 11 months | |
|
Limit the number of images in the custom field image gallery
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
2 | 7 | vor 4 years, 11 months | |
|
I cant modified content template
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
3 | 14 | vor 4 years, 11 months | |
|
I cant modified content template
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
2 | 14 | vor 4 years, 11 months | |
|
Is it possible add google address coordinates in json?
Gestartet von: avansisI-2
in: Toolset Professional Support
Problem: Is it possible add custom address field coordinates into REST API result in JSON format? Solution: Please try the function types_render_field(), for example: https://toolset.com/forums/topic/is-it-possible-add-google-address-coordinates-in-json/#post-1845587 Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#address |
|
2 | 13 | vor 4 years, 11 months | |
|
Offline Coupon Creator
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
2 | 11 | vor 4 years, 11 months | |
|
I need to generate in backend title with custom type field
Gestartet von: avansisI-2
in: Toolset Professional Support
Problem: I would like to automatically generate a post title from a custom field value when a User submits a Form to create a new post Solution: Use the following custom code snippet to automate the post title:
add_action('cred_save_data', 'tssupp_build_title', 99, 2);
function tssupp_build_title($post_id, $formdata)
{
if ($formdata['id']==4684) {
if (isset($_POST['wpcf-nombre_del_comercio'])) {
$new_title = $_POST['wpcf-nombre_del_comercio'];
$post_update = array(
'ID' => $post_id,
'post_title' => $new_title
);
wp_update_post($post_update);
}
}
}
Relevant Documentation: |
|
2 | 10 | vor 4 years, 11 months | |
|
Relationship in API REST
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
2 | 12 | vor 4 years, 11 months | |
|
I cant created categories and taxiomas
Gestartet von: avansisI-2
in: Toolset Professional Support
Problem: Solution: As you can see in this screenshot http://prntscr.com/vhy90m Categories are only activated for the custom post type "Fichas de empresas" and it is also available on its sub-menu. |
|
3 | 6 | vor 4 years, 11 months | |
|
User sign up in create form custom typ
Gestartet von: avansisI-2 in: Toolset Professional Support |
|
2 | 4 | vor 4 years, 12 months |