Right and left Sidebar behave different with same PP
Hi everyone,
I am desperetly seeking for help. I am using this PHP code in PHP Code Widget: Code:
How can I manage that the left Sidebar shows the same behaviour as the right Sidebar? Every hint is gladly appreciated! |
Your code throws an error. In the beginning:
HTML Code:
// Retrieve consistent random set of posts with pagination function mam_posts_query($query) { |
Thank You very much for your quick response, Juggledad!
I did copy and paste with an iPad, with which I am not very familiar, sSorry about that. Here is the correct code: Code:
|
What's happening is you are messing with the default query - not a good idea.
In simple terms: - with widget in left sidebar -- Page starts to load -- WP has a default query it is going to use -- the header, left and left inner sidebar code run -- your code sets information for 'the loop' and runs the query -- sidebar finished and center colum gets built -- loop runs again using data setup by your query -- right-inner and right sidebar code run -- footer code run - with loop in right sidebar -- Page starts to load -- WP has a default query it is going to use -- the header, left and left inner sidebar code run -- sidebar finished and center colum gets built -- loop runs using default query options -- right-inner and right sidebar code run -- your code sets information for 'the loop' and runs the query with your options -- footer code run You need to look at how to create a new query in your code |
Thank you again, Juggledad!
Your detailed list of the different processes is enlightening. I will try to follow your advise to create a new query. |
All times are GMT -6. The time now is 02:51 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.