Doug
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é |
|---|---|---|---|---|---|
|
Is it possible to mass update relationships?
Commencé par : Doug
in: Toolset Professional Support
Problem: I need to bulk connect hundreds of “therapist” posts to many “treatment” posts in a many-to-many Toolset relationship, but manually linking each one is extremely time-consuming. Solution: Export the relationships to a CSV or spreadsheet, bulk edit them using an external tool, and re-import using a compatible importer. Alternatively, use the WP Sheet Editor plugin which supports Toolset relationships for bulk editing directly in a spreadsheet-style interface within WordPress. Relevant Documentation: https://toolset.com/forums/topic/many-to-many-relationship-using-csv/ https://toolset.com/course-lesson/bulk-editing-toolset-content-with-wp-sheet-editor/ |
|
1 | 4 | Il y a 1 year | |
|
Get Post Reference field data directly in PHP
Commencé par : Doug
in: Toolset Professional Support
Problem: I am trying to retrieve the post ID of a related post connected through a specific Toolset Post Reference Field in PHP, but using get_post_meta() returns an empty string, and I need to avoid fetching all related posts of the same type. Solution: Use toolset_get_related_post( $post_id, 'relationship-slug' ) to retrieve the post ID tied specifically to the Post Reference Field; it returns the related post ID or 0 if none is found. Example:
$related_post_id = toolset_get_related_post( 123, 'advisor' );
if ( $related_post_id ) {
echo 'Related post ID: ' . $related_post_id;
} else {
echo 'No related post found.';
}
Relevant Documentation: https://toolset.com/documentation/programmer-reference/views-filters/ |
|
1 | 3 | Il y a 1 year | |
|
Is it possible to set up Toolset through Multisite, where data is shared?
Commencé par : Doug in: Toolset Professional Support |
|
2 | 3 | Il y a 1 year, 8 months | |
|
AJAX sorting/filtering doesn't work on Google Chrome
Commencé par : Doug
in: Toolset Professional Support
Problem: I'm using a view with AJAX sorting and filtering, along with the "Show only filter options that would produce results" feature. It works perfectly in Safari but not in Chrome, where it endlessly loads. Disabling AJAX and the filter option resolves the issue in Chrome. Solution: The issue is related to a CORS error that occurs when accessing the site without the "www" prefix in the URL. The AJAX request is blocked because it is treated as a cross-origin request. To resolve this, you need to configure your server to include the Access-Control-Allow-Origin header for the admin-ajax.php file. This can be done by modifying your server's configuration: 1. For Apache:
<ifmodule mod_headers.c>
Header set Access-Control-Allow-Origin "https://mlpt.com"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header set Access-Control-Allow-Headers "Content-Type"
</ifmodule>
2. For Nginx:
location /wp-admin/admin-ajax.php {
add_header 'Access-Control-Allow-Origin' 'https://mlpt.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type';
}
3. In WordPress (PHP):
function add_cors_http_header() {
header("Access-Control-Allow-Origin: https://mlpt.com");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type");
}
add_action('init', 'add_cors_http_header');
|
|
2 | 8 | Il y a 1 year, 10 months | |
|
How can I align Toolset search fields horizontally?
Commencé par : Doug in: Toolset Professional Support |
|
2 | 3 | Il y a 1 year, 10 months | |
|
Displaying Fields that Belong to the Related Post
Commencé par : Doug in: Toolset Professional Support |
|
2 | 6 | Il y a 2 years, 1 month | |
|
Error page when trying to add or edit Content Templates
Commencé par : Doug in: Toolset Professional Support |
|
2 | 4 | Il y a 2 years, 4 months | |
|
Field groups for repeating fields don't show up
Commencé par : Doug in: Toolset Professional Support |
|
2 | 2 | Il y a 2 years, 4 months | |
|
Sort custom posts by year
Commencé par : Doug in: Toolset Professional Support |
|
3 | 7 | Il y a 2 years, 6 months | |
|
How do you create a view editable with the Block Editor directly?
Commencé par : Doug in: Toolset Professional Support |
|
3 | 6 | Il y a 2 years, 6 months | |
|
How to de-activate additional padding in single fields
Commencé par : Doug in: Toolset Professional Support |
1 | 2 | Il y a 2 years, 6 months | ||
|
Display objects that are in a relationship, that in turn are in a relationship
Commencé par : Doug in: Toolset Professional Support |
2 | 3 | Il y a 2 years, 7 months | ||
|
How do I delete intermediary posts without deleting associated relationships
Commencé par : Doug in: Toolset Professional Support |
|
2 | 7 | Il y a 2 years, 7 months | |
|
How to filter child posts in a loop for duplicates
Commencé par : Doug in: Toolset Professional Support |
|
2 | 7 | Il y a 2 years, 7 months |