Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #730387

    i mean those side left right navigations on blog posts and portfolio.
    On tribe-events these are also by default set. But my plugin for those events (eventmanager) is not included.
    Custom post type is called “event” (on tribe it is tribe-events i think)

    #731825

    Hey Guenter,

    Thank you for using Enfold.

    I’m sorry but the inquiry is a bit unclear. Could you please provide a url or a screenshot of the issue?

    Best regards,
    Ismael

    #731826

    Hi,

    UPDATE: The post navigation is not visible in the “eventmanager” event pages because the “avia_post_nav” function is not included in the template.

    Best regards,
    Ismael

    #908520

    well the function itself is with (if(!function_exists('avia_post_nav')) ) – so a copy of the whole function in child-theme functions.php will overwrite the whole thing.
    i can set here after

    $settings['type'] = get_post_type();
    $settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    $settings['taxonomy'] = ($settings['type'] == 'event') ? 'event-categories' : $taxonomy;

    than it will work for events – but portfolio support is than away.
    i do not see how to set here an if clause (if $settings[‘type’] == ‘event’ etc …)

    #909103

    Hi,

    Have you tried using the “avia_post_nav_entries” filter? Set the $settings[‘taxonomy’] to “event-categories” if the current post type is events.

    Best regards,
    Ismael

    #909159

    if i change that code to code above.
    the events will have post-nav – but portfolio post-nav is gone.
    i’m not so familiar with ternary operator – how can I formulate the code?

    #909291

    Hi,

    I’m sorry, I meant “avia_post_nav_settings” filter. Please try this.

    add_filter( 'avia_post_nav_entries', 'avia_post_nav_settings_mod', 10, 1); 
    function avia_post_nav_settings_mod($settings) {
        if(is_singular('tribe_events')) {
    		$settings['taxonomy'] = 'event-categories';
    	}
        return $settings;
    }

    Do you have a test site?

    Best regards,
    Ismael

    #909353

    i transformed it to events manger :

    add_filter( 'avia_post_nav_entries', 'avia_post_nav_settings_mod', 10, 1); 
    function avia_post_nav_settings_mod($settings) {
        if(is_singular('event')) {
    		$settings['taxonomy'] = 'event-categories';
    	}
        return $settings;
    }

    but with no luck. There is on the left side a look alike button which slides out – but it shows the actual event and click leads to itself.

    #909566

    Hi,

    Thank you for update. Do you mind if we access the test site?

    Best regards,
    Ismael

    #909635

    From my part yes – but customer allready has a working account to edit Pages and Posts –
    – because I’m interested in it in general, I just wanted to create your own test environment. There it works without further adjustment. Therefore, I will now first look at why it goes in one installation and the other not.

    #909654

    hm – it is one code in functions.php of child-theme
    but i need it for portfolio to only navigate the same cat.

    add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' );
    function enfold_customization_same_cat( $s ) {
        $s['same_category'] = true;
      return $s;
    }
    #909664

    i inserted this code – and it works with an if clause

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('portfolio')) {
        $settings['taxonomy'] = 'portfolio_entries';
        $settings['same_category'] = true;}
      if(is_singular('event')) {
        $settings['taxonomy'] = 'event-categories';
        $settings['same_category'] = true;}
      return $settings;
    }
    #910169

    Hi,

    Great! Thanks for sharing. :)

    Best regards,
    Ismael

    #910225

    can be closed !

    #910476

    Hi,

    Thanks, I’ll close the thread for now.

    Best regards,
    Rikard

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘having for custom post type "event" the avia-post-nav too’ is closed to new replies.