-
AuthorPosts
-
January 6, 2017 at 3:38 pm #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)January 11, 2017 at 4:32 am #731825Hey 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,
IsmaelJanuary 11, 2017 at 4:35 am #731826Hi,
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,
IsmaelFebruary 6, 2018 at 12:13 pm #908520well 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 …)February 7, 2018 at 1:14 pm #909103Hi,
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,
IsmaelFebruary 7, 2018 at 2:15 pm #909159if 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?February 7, 2018 at 5:00 pm #909291Hi,
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,
IsmaelFebruary 7, 2018 at 7:22 pm #909353i 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.
February 8, 2018 at 5:09 am #909566Hi,
Thank you for update. Do you mind if we access the test site?
Best regards,
IsmaelFebruary 8, 2018 at 9:05 am #909635From 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.February 8, 2018 at 10:01 am #909654hm – 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; }
February 8, 2018 at 10:16 am #909664i 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; }
February 9, 2018 at 10:05 am #910169February 9, 2018 at 12:13 pm #910225can be closed !
February 10, 2018 at 6:25 am #910476 -
AuthorPosts
- The topic ‘having for custom post type "event" the avia-post-nav too’ is closed to new replies.