-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected filters/actions? #239
Comments
By default Mesh will hook into "loop_end" (which is a default hook within pages). However this may not work if your home page is ONLY displaying the "blog" within your Website General Settings vs defining a "Front page" Below is an example of what happens within the hook for loop_end
We also apply out own |
do_action('loop_end');
Passing |
Did you make a change to Mesh and received that error? |
like you wouldn't call |
No changes had been made to Mesh plugin, I removed its plugin folder and reinstalled it to be sure. Can I trigger the |
I haven't ever built anything using Sage9 before. Are you using the laravel blade templates or the defaults? I'm not sure why it wouldn't find the_loop or have access to general hooks from WordPress. |
@aaronware: It works with a single page with sage9 (laravel blade is used internally, yes). This code is used for adding one pager support to a sage9 theme: I can use |
Ahh ok. Can you send me an example of the code you are using? Or is that something you can just do from the admin of the theme once you generate it? |
@aaronware: Sure! /~https://github.com/strarsis/sage9-onepager-lib/blob/mesh-templ/Controls.php#L127 |
@aaronware: As a workaround it is possible to reset the $post = get_post( get_theme_mod( 'panel_' . $id ) );
setup_postdata( $post );
set_query_var( 'panel', $id );
$template_data = array(
'end' => mesh_display_sections( $post->ID, false )
);
// reset $post
$post = get_post( get_theme_mod( 'panel_' . $id ) );
setup_postdata( $post );
set_query_var( 'panel', $id );
echo \App\template( 'single-panels', $template_data );
wp_reset_postdata(); However, this is a workaround, ideally the |
Does the Mesh plugin expect specific filters/actions for rendering the markup?
In a sage9 based one pager theme, for each page the blade render method is called,
but Mesh plugin is not adding the markup.
Must some specific filters/actions be called explicitly?
The text was updated successfully, but these errors were encountered: