-
AuthorPosts
-
July 27, 2015 at 8:45 pm #479288
Hi,
After having filtered avf_builder_boxes for a custom post types for using the enfold builder which these,i can’t find a way to include back a “get_adjacent_post” like navigation in their single pages. Where can i hack the code to implement it back ? or what can i filter/hook to do so ?Thank’s
Regards
July 28, 2015 at 9:36 am #479532Hey Mborie!
I’m not sure what you mean by that, what changes have you made so far?
Best regards,
RikardJuly 28, 2015 at 10:02 am #479560Ok,
i’ve added a filter on ‘avf_builder_boxes’ to enable the enfold builder for some of my post types
<?php add_filter( ‘avf_builder_boxes’, ‘add_builder_to_post_type’ ); ?>
I don’t show you the add_builder_to_post_type() but it works like a charm and i can edit my custom pt with the builder.My problem is that i can’t retreive a “previous_post” – “next_post” navigation when accessing one of my single custom post type pages.
My question is What/where is the file or snippet i have to hook on, or override to retrieve or implement a navigation on my single custom post type pages ?
Regards
July 29, 2015 at 10:11 pm #480440Hello ?
Anybody out there ?July 30, 2015 at 12:51 am #480482Hey!
Please add following code to Functions.php file in Appearance > Editor
add_filter( 'avia_post_nav_settings', 'enfold_customization_post_nav', 99 ); function enfold_customization_post_nav( $settings ) { if ( get_post_type() == 'portfolio' ) { $settings['is_fullwidth'] = false; } return $settings; }and change ‘portfolio’ with your custom post type
Regards,
YigitJuly 30, 2015 at 1:36 am #480498Ok thank’s,
Last thing where can find this filter in action, so i die smarter ?Best regards
July 30, 2015 at 11:28 am #480618January 6, 2017 at 2:00 pm #730345concerning to this but a bit different.
i have the custom post type : event
and i want to have the side-navigation left right for that too! prev next event.I think i open better a new thread
-
This reply was modified 8 years, 10 months ago by
Guenni007.
-
This reply was modified 8 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
