Skip to content
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

hybrid_get_sidebar() not printing on second call #122

Closed
xavortm opened this issue Sep 16, 2015 · 3 comments
Closed

hybrid_get_sidebar() not printing on second call #122

xavortm opened this issue Sep 16, 2015 · 3 comments

Comments

@xavortm
Copy link

xavortm commented Sep 16, 2015

I need to call the same sidebar twice (because of the design on tablet/desktop) but when i use the hybrid function, the second time there is nothing printed. If i do get_sidebar() its working properly. But as for what this function is i find it really useful and get_sidebar() is not what i want to use directly.

@lkraav
Copy link

lkraav commented Sep 16, 2015

I'm quite certain we ran into this as well.

@justintadlock
Copy link
Member

Just tested with:

<?php hybrid_get_sidebar( 'subsidiary' ); // Loads the sidebar/subsidiary.php template. ?>
<?php hybrid_get_sidebar( 'subsidiary' ); // Loads the sidebar/subsidiary.php template. ?>

It works. Plus, reviewing the code, it should work as well. I'm tempted to close this, but I'll await further feedback.

Screenshot:

sidebar-subsidiary

Even though it works, I wouldn't generally recommend loading the same sidebar twice. There's got to be better methods of handling the design than that.

@justintadlock
Copy link
Member

Closing since no further feedback was provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants