38 posts
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+4 more
Thorit says

Hey, i am developing a toppanel plugin which will display wordpress sidebars. now my problem is that the code get_sidebar(); always gets the whole page content. Link: http://www.color4you.org/demo/wptoppanel/

Thanks in advance! :)

1497 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

My first guess would be unpropperly closed div tags :)

38 posts
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+4 more
Thorit says

Nop unfortunately not :( divs are closed

<div class="tp-s3"> '.dynamic_sidebar( $right);' </div>
413 posts
  • Has referred 100+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
+2 more
mitdralla says

I would start with some PHP logging to see what $right contains. If it contains more or less than what you are looking for you might need to tweak your query.

1497 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

Nop unfortunately not :( divs are closed <div class="tp-s3"> '.dynamic_sidebar( $right);' </div>

You see, I was right :)

Replace it with this: <div class="tp-s3"> ' . dynamic_sidebar( $right ) . ' </div>
38 posts
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+4 more
Thorit says

Ah got it fixed thanks OriginalEXE :)

1497 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

No problem!

by
by
by
by
by
by