any shortcode for show related trip?

Homepage Forums WP Travel any shortcode for show related trip?

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Support Team 2 days, 19 hours ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21177

    karankcoresys
    Participant

    I want to show them in tabs at tour page!!

    Please help

    #21200

    Support Team
    Keymaster

    Hello @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.

    #21206

    karankcoresys
    Participant

    Thank you for reply,

    So can you tell any how i can move related trips in the tabs?

    #21210

    Support Team
    Keymaster

    Hello,

    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.

    #21215

    karankcoresys
    Participant

    I 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!

    #21231

    Support Team
    Keymaster

    Hello,

    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.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.