AndreasP4791
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 |
---|---|---|---|---|---|
Edit link for different post types
Started by: AndreasP4791 in: Toolset Professional Support |
2 | 12 | 5 years, 7 months ago | ||
Print all posts in a view regardless the language
Started by: AndreasP4791
in: Toolset Professional Support
Problem: I want view to print all user's posts regardless the page language. Solution: This is expected result, Views will output posts of specific language by current page. You might consider to use display a language switcher, after user click the language links, Views will output posts of specific language. for example: https://toolset.com/forums/topic/print-all-posts-in-a-view-regardless-the-language/#post-1244396 Relevant Documentation: |
2 | 7 | 5 years, 8 months ago | ||
Custom view with post author link
Started by: AndreasP4791 in: Toolset Professional Support |
2 | 2 | 5 years, 8 months ago | ||
Print post language (WPML) in a view
Started by: AndreasP4791
in: Toolset Professional Support
Problem: The issue here is that the user wanted to get the current post language. // Add Shortcode function current_language( $atts ) { // Attributes $atts = shortcode_atts( array( 'id' => '', 'part' => '', ), $atts ); $language = wpml_get_language_information($atts['id']); return $language[$atts['part']]; } add_shortcode( 'current_language', 'current_language' ); How this works is that it gives you the shortcode [current_language id='[wpv-post-id]' part='display_name'] this should give you the correct information. Also you can add the code for the shortcode in the toolset custom code section under Toolset -> Settings -> Custom Code. |
2 | 7 | 5 years, 8 months ago |