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 | 2 years, 11 months ago | |
|
CUSTOM FIELD CONDITIONAL
Started by: Paulo Ramalho in: Toolset Professional Support |
|
3 | 5 | 3 years, 3 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 | 3 years, 7 months ago | |
|
Display related posts based its terms
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 4 | 3 years, 8 months ago | |
|
Search results on another page
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 6 | 4 years 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, 1 month ago | |
|
Loan Books System
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 6 | 4 years, 1 month ago | |
|
Views map slow down the page
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 2 | 4 years, 4 months ago | |
|
Displaying Term Fields on the Front-end
Started by: Paulo Ramalho
in: Toolset Professional Support
Problem: Solution:
$taxonomy_slug = "book-author";
$authors = get_the_terms( get_the_ID(), $taxonomy_slug );
$author_ids = wp_list_pluck( $authors, 'term_id' );
foreach ($author_ids as $author_id) {
echo types_render_termmeta("foto-del-autor", array( "term_id" => $author_id, "width" => "100", "height" => "100" ) );
}
Update the first line with your taxonomy slug. |
|
3 | 6 | 4 years, 6 months ago | |
|
Displaying Term Fields on the Front-end
Started by: Paulo Ramalho in: Toolset Professional Support |
|
2 | 12 | 4 years, 7 months ago |