peg
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Question: is a filter set?
Started by: peg in: Toolset Professional Support |
2 | 3 | 7 years, 5 months ago | ||
Archive Pagination and WPML
Started by: peg
in: Toolset Professional Support
Problem: I have a WordPress Archive that includes pagination. The links to each page appear correctly in my primary language, but in my translated language site I see the placeholder shortcodes instead of the correct page number: %%SEITE%% Solution: Select "Translate the theme and plugins using WPML's String Translation only (don't load .mo files)" in WPML > Theme and Plugin Localization. Relevant Documentation: https://wpml.org/documentation/getting-started-guide/theme-localization/ |
2 | 5 | 7 years, 5 months ago | ||
WooCommerce Views – possible bug?
1
2
Started by: peg in: Toolset Professional Support |
3 | 18 | 7 years, 5 months ago | ||
make more than 50 posts show on paginated view
Started by: peg
in: Toolset Professional Support
Problem: I would like to be able to show more than 50 results per page using pagination, but I don't have the option to set a higher value using the GUI. Solution: Use the wpv_view_settings filter to manually set the number of posts per page. Note that the number will not appear accurately in the form settings GUI, but will function as expected. //Modify the limit and/or offset settings of a given View to use a number greater than 50: add_filter( 'wpv_view_settings', 'prefix_modify_filter_offset_view', 5, 2 ); function prefix_modify_filter_offset_view( $view_settings, $view_id ) { if ( $view_id == 374 ) { // modify 374 to match your View ID $pagination = $view_settings['pagination']; // get the pagination settings $pagination['posts_per_page'] = 100; // modify this number accordingly $view_settings['pagination'] = $pagination; // save with updated pagination settings } return $view_settings; } Relevant Documentation: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_view_settings |
2 | 7 | 7 years, 7 months ago | ||
Need filter: send CRED emails only if …
Started by: peg
in: Toolset Professional Support
Problem: I need to send a CRED email notification to a user, conditionally, based on a custom user field in that user's profile. Solution: Add a generic field in your CRED form that includes the user's email address. Apply conditional logic around this generic field, and test if the user's custom field value is a match. If so, include the generic field. If not, do not include the generic field. In your CRED email notification settings, choose the generic field as the target of the email notification. If the generic field is not present because the conditional was not matched, the email will not be sent. Relevant Documentation: Documentation about conditional output: Documentation about getting user meta fields: |
2 | 5 | 7 years, 7 months ago |