Adnan
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 |
---|---|---|---|---|---|
Custom Fields Filter dont show "or" or "and" field anymore?
Started by: Adnan in: Toolset Professional Support |
2 | 3 | 2 years, 3 months ago | ||
Is it possible to exclude the protected product by toolset access …
Started by: Adnan in: Toolset Professional Support |
2 | 3 | 2 years, 8 months ago | ||
Increment count of a custom field onload with ajax (for cached sites)
Started by: Adnan
in: Toolset Professional Support
Problem: Is there a page counter solution like this but just on page load? Solution: There isn't such kind of built-in feature within Toolset plugins, and no existed solution for it, in my opinion, you can try other plugins, for example: https://wordpress.org/plugins/search/counter/ Relevant Documentation: |
2 | 4 | 3 years, 3 months ago | ||
Post Field Date Format is not working
Started by: Adnan
in: Toolset Professional Support
Problem: I would like to format a timestamp stored in a non-Types custom field, but the wpv-post-field shortcode does not seem to work. Solution: The wpv-post-field shortcode is meant to be used to display raw values from the database, not formatted values. The Types field shortcode can show formatted dates, but usually not from non-Types fields. You can use a custom shortcode like this: // format a postmeta field timestamp to return a date function format_meta_timestamp_date_func($atts) { $a = shortcode_atts( array( 'format' => 'Y-m-d H:i:s', 'slug' => '', 'id' => 0 ), $atts ); $timestamp = get_post_meta( $a['id'], $a['slug'], true ); if ( !$timestamp ) return; $date = date($a['format'], $timestamp); return $date; } add_shortcode( 'format-meta-timestamp-date', 'format_meta_timestamp_date_func'); Then use the shortcode like this: [format-meta-timestamp-date id="12345" format="Y-m-d H:i:s" slug="_sale_price_dates_from"][/format-meta-timestamp-date] Replace 12345 with the post ID or a wpv-post-id shortcode. |
2 | 3 | 6 years, 3 months ago | ||
How can I change the Cred Post Form Date Format
Started by: Adnan
in: Toolset Professional Support
Problem: I would like to use a different date format when displaying the selected dates in a Form. Solution: The following date formats are supported in Toolset Forms: If you choose one of these formats in Settings > Global, it will be used for the date field. Other formats are not currently supported. You may be able to use custom code to specify your own date format using the jQuery datepicker API, but support for implementing other formats is not available here in the forums. Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
shortcode in shortcode
Started by: Adnan
in: Toolset Professional Support
Problem: I would like to use a View shortcode within an attribute of another View shortcode. Solution: Make sure your inner shortcode produces raw output by adding the following code to functions.php: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { if ( $id == '12345' ) { //Please adjust to your Views ID $start = strpos( $out, '<!-- wpv-loop-start -->' ); if ( $start !== false && strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false ) { $start = $start + strlen( '<!-- wpv-loop-start -->' ); $out = substr( $out , $start ); $end = strrpos( $out, '<!-- wpv-loop-end -->' ); $out = substr( $out, 0, $end ); } else { $start = strpos( $out, '>' ); if ( $start !== false) { $out = substr( $out, $start + 1 ); $end = strpos( $out, '<' ); $out = trim(substr( $out, 0, $end )); } } } return $out; } Change 12345 to be the numeric ID of the inner shortcode. |
2 | 3 | 7 years, 4 months ago |