EVENTS IN THE MAIN POST LOOP

Home Forums Calendar Products Events Calendar PRO EVENTS IN THE MAIN POST LOOP

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000263
    Ravery
    Participant

    How can the English language event in the main post loop.

    http://jimmyhome.ns2go.com/hkadc1 is work

    http://jimmyhome.ns2go.com/hkadc1/en is not work

    add_filter(‘pre_get_posts’, ‘query_post_type’);
    function query_post_type($query) {
    if(is_archive() || is_tag() || is_home() && empty( $query->query_vars[‘suppress_filters’] ) ) {
    $post_type = get_query_var(‘post_type’);
    if($post_type)
    $post_type = $post_type;
    else
    $post_type = array(‘post’,’tribe_events’,’attachment’);
    $query->set(‘post_type’,$post_type);
    return $query;
    }
    }

    • This topic was modified 10 years, 8 months ago by Ravery.
    • This topic was modified 10 years, 8 months ago by Ravery.
    #1000424
    George
    Participant

    Hi Ravery,

    We do not offer support for custom code here, so this may not be something we can fully troubleshoot – however, I’m curious, how are you generating the /en/ version of your events post?

    If it is with a third-party translation plugin, then we unfortunately do not know how that plugin goes about generating the /en/ version of the events post, and your best option here would be to contact that translation plugin’s support teams for more information on doing this.

    Thanks,
    George

    #1005230
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘EVENTS IN THE MAIN POST LOOP’ is closed to new replies.