Paulo Ramalho
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 |
|---|---|---|---|---|---|
|
Language dependent content
Started by: Paulo Ramalho
in: Toolset Professional Support
Problem: How to show content of a custom post type in a specific language while WPML is active Solution: In the WP_Query try to use the lang attribute:
<?php
$loop = new WP_Query( array (
'post_type' => 'YOUR_CUSTOM_TYPE_SLUG',
'lang' => 'en', // use language slug in the query
// 'lang' => 'de,fr', // query German and French posts
// 'lang' => '', // query posts in all languages
'paged' => get_query_var( 'paged' ),
'posts_per_page' => 10,
'post_status' => 'publish',
) );
while( $loop->have_posts() ) : $loop->the_post(); ?>
// html here
<?php endwhile; ?>
|
|
2 | 5 | 3 years, 5 months ago | |
|
CUSTOM FIELD CONDITIONAL
Started by: Paulo Ramalho in: Toolset Professional Support |
|
3 | 5 | 3 years, 9 months ago | |
|
Conditional on PHP shortcode
Started by: Paulo Ramalho
in: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
|
2 | 6 | 4 years, 1 month ago | |
|
Display related posts based its terms
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 4 | 4 years, 2 months ago | |
|
Search results on another page
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 6 | 4 years, 6 months ago | |
|
I prefer to hardcode the theme and I use to make it with echo_shortcode on the old version of Views
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 4 | 4 years, 7 months ago | |
|
Loan Books System
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 6 | 4 years, 7 months ago | |
|
Views map slow down the page
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 2 | 4 years, 10 months ago |