avansisI-2
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 |
|---|---|---|---|---|---|
|
Url validate without http or https
Iniciado por: avansisI-2
en: 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 | 4 years, 11 months ago | |
|
Email notification doesnt work
Iniciado por: avansisI-2 en: Toolset Professional Support |
1 | 2 | 4 years, 11 months ago | ||
|
Relationship in api rest
1
2
Iniciado por: avansisI-2
en: 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 | 4 years, 11 months ago | |
|
Limit the number of images in the custom field image gallery
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
2 | 7 | 4 years, 11 months ago | |
|
I cant modified content template
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
3 | 14 | 4 years, 11 months ago | |
|
I cant modified content template
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
2 | 14 | 4 years, 11 months ago | |
|
Is it possible add google address coordinates in json?
Iniciado por: avansisI-2
en: 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 | 4 years, 11 months ago | |
|
Offline Coupon Creator
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
2 | 11 | 4 years, 11 months ago | |
|
I need to generate in backend title with custom type field
Iniciado por: avansisI-2
en: 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 | 4 years, 11 months ago | |
|
Relationship in API REST
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
2 | 12 | 4 years, 11 months ago | |
|
I cant created categories and taxiomas
Iniciado por: avansisI-2
en: 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 | 4 years, 11 months ago | |
|
User sign up in create form custom typ
Iniciado por: avansisI-2 en: Toolset Professional Support |
|
2 | 4 | 4 years, 11 months ago |