36 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 5 000 and 10 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
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! :)

1466 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

My first guess would be unpropperly closed div tags :)

36 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 5 000 and 10 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
Thorit says

Nop unfortunately not :( divs are closed

<div class="tp-s3"> '.dynamic_sidebar( $right);' </div>
412 posts
  • Sold between 1 000 and 5 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
  • United States
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.

1466 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
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>
36 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 5 000 and 10 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
Thorit says

Ah got it fixed thanks OriginalEXE :)

1466 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

No problem!

by
by
by
by
by
by