- This topic has 5 replies, 2 voices, and was last updated 3 years, 6 months ago by
Support Team.
- AuthorPosts
- November 9, 2019 at 10:29 am #21177
karankcoresys
ParticipantI want to show them in tabs at tour page!!
Please help
November 11, 2019 at 4:46 am #21200Support Team
KeymasterHello @karankcoresys,
Currently, the feature to show the related trips in the tab is not available in the plugin and as much as we would love to help you with this we are unable to do so as it requires higher code customization.
Hope this clears the confusion.
Thank you.
November 11, 2019 at 10:19 am #21206karankcoresys
ParticipantThank you for reply,
So can you tell any how i can move related trips in the tabs?
November 11, 2019 at 10:43 am #21210Support Team
KeymasterHello,
The related trip will be only displayed in the trip single page at the bottom of the page. As for now, it cannot be displayed in the tabs.
If you want the feature then you can consider hiring our professional developer.
To hire a developer refer to below-given link:
http://wptravel.io/hire-our-customizer/
Thank you.
November 11, 2019 at 12:32 pm #21215karankcoresys
ParticipantI am also a developer, it’s okay if it does not work. Can you just help me with to show all the destinations with the thumbnail?
I used this code
`$args = array(
‘type’ => ‘itineraries’,
‘child_of’ => 0,
‘parent’ => ”,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘hide_empty’ => 1,
‘hierarchical’ => 1,
‘exclude’ => ”,
‘include’ => ”,
‘number’ => ”,
‘taxonomy’ => ‘travel_locations’,
‘pad_counts’ => false );
$categories = get_categories($args);
$attachments = get_children( $args );foreach ($categories as $category):
// set up a new query for each category, pulling in related posts.
$services = new WP_Query(
array(
‘post_type’ => ‘itineraries’,
‘showposts’ => -1,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘travel_locations’,
‘terms’ => array( $category->slug ),
‘field’ => ‘slug’
)
)
)
);
?>
<h3><?php echo $category->name; ?></h3>- <?php while ($services->have_posts()) : $services->the_post(); ?>
- <?php the_title(); ?>
<?php endwhile; ?>
<?php
// Reset things, for good measure
$services = null;
wp_reset_postdata();
// end the loop
endforeach;’just need to call thumbnail in this code!
November 12, 2019 at 5:18 am #21231Support Team
KeymasterHello,
Glad to know that you are a developer.
So make the shortcode of the block of code mentioned above and use that shortcode in the tabs available in the trip single page.
Thank you.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.