38 posts
  • Author Level 4
  • Beta Tester
  • Collector Level 4
  • Featured Author
+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! :)

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

My first guess would be unpropperly closed div tags :)

38 posts
  • Author Level 4
  • Beta Tester
  • Collector Level 4
  • Featured Author
+4 more
Thorit
says

Nop unfortunately not :( divs are closed

<div class="tp-s3"> '.dynamic_sidebar( $right);' </div>
416 posts
  • Affiliate Level 4
  • Author Level 3
  • Collector Level 3
  • 4 Years of Membership
+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.

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+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
  • Author Level 4
  • Beta Tester
  • Collector Level 4
  • Featured Author
+4 more
Thorit
says

Ah got it fixed thanks OriginalEXE :)

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

No problem!

by
by
by
by
by
by