fahimS-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é |
|---|---|---|---|---|---|
|
Stop archive search form reload while pagination
Commencé par : fahimS-2
in: Toolset Professional Support
Problem: In my Toolset archive search, the search form reloads during pagination, undoing modifications made by jQuery. This issue particularly affects a collapsible and expandable terms feature I'm using. Solution: Adjust your jQuery code to record the state (expanded or collapsed) of each term in an array or object. Upon the ajaxComplete event, use this recorded state to maintain the terms' status after pagination. Relevant Documentation: https://www.codeproject.com/Questions/886536/Cant-find-an-element-after-I-got-it-using-Ajax-jQu |
|
2 | 5 | Il y a 3 years, 1 month | |
|
Show result count
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 9 | Il y a 3 years, 1 month | |
|
Show taxonomy terms differently
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 3 | Il y a 3 years, 1 month | |
|
Jquery not working after Clear All Filter is clicked
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 7 | Il y a 3 years, 1 month | |
|
Show custom field value after dividing it
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 7 | Il y a 3 years, 1 month | |
|
Remove custom field and taxonomy search from specific archive
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 5 | Il y a 3 years, 1 month | |
|
OR Logic for some taxonomies in wordpress archive
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 11 | Il y a 3 years, 2 months | |
|
Collapsible checkbox query
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 3 | Il y a 3 years, 2 months | |
|
Change post types of posts
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 9 | Il y a 3 years, 2 months | |
|
Same form to multiple post types
Commencé par : fahimS-2
in: Toolset Professional Support
Problem: The user had three custom post types (cpt1, cpt2, cpt3) and a custom field group called "cf" assigned to each of them. They wanted to use the same form for all custom post types to submit data from the frontend. However, Toolset only allows a separate form for each custom post type. Solution: -Create separate forms for each custom post type (cpt1, cpt2, cpt3). - Go to Toolset > Content Templates and create a new Content Template, without assigning it to any post type (e.g., name it "conditional-logic"). [wpv-conditional if="( '[wpv-post-type]' eq 'cpt1' )"] [shortcode for the form for cpt1] [/wpv-conditional] [wpv-conditional if="( '[wpv-post-type]' eq 'cpt2' )"] [shortcode for the form for cpt2] [/wpv-conditional] [wpv-conditional if="( '[wpv-post-type]' eq 'cpt3 [/wpv-conditional] |
|
2 | 13 | Il y a 3 years, 2 months | |
|
Form Validation
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 9 | Il y a 3 years, 2 months | |
|
custom field value update with custom code
Commencé par : fahimS-2
in: Toolset Professional Support
Problem: The user needs to update the 'book-url' custom field value for all posts of the 'book' post type without having to edit each post individually. Solution: You can use a code like this: function update_book_urls($post_type, $url) {
// Get all posts of the 'book' post type
$args = array(
'post_type' => $post_type,
'posts_per_page' => -1,
);
$book_posts = get_posts( $args );
// Loop through each post and update the 'book-url' custom field
foreach ( $book_posts as $post ) {
update_post_meta( $post->ID, 'wpcf-saas-deal-link', $url );
}
}
update_book_urls('saas', 'https://book.com');
|
|
2 | 5 | Il y a 3 years, 2 months | |
|
Empty Form Value
Commencé par : fahimS-2 in: Toolset Professional Support |
|
2 | 13 | Il y a 3 years, 2 months | |
|
Changing custom field slug
Commencé par : fahimS-2
in: Toolset Professional Support
Problem: I have a custom field group where I have bunch of custom fields. If I change the slugs of the custom fields, will it create any issue, like data loss of the custom fields? Solution: - we have an image field on a content template After this change, we'll check that the image displaying on the content template just disappears. Because it still thinks that the slug is 'image' - therefore, we would need to select the image field again, in order to make the system recognizes the new slug. Please check the screenshot: https://snipboard.io/rYb0Pl.jpg This will happen to any field that you change its slug. If you have several fields, you'll need to re-select all of them and maybe it would be a extensive manual work. |
|
2 | 5 | Il y a 3 years, 2 months | |
|
Custom posts to home page
Commencé par : fahimS-2 in: Toolset Professional Support |
2 | 3 | Il y a 3 years, 2 months |