Hi, I know I’m new to this forum, but I’m even NEWER to coding in php/wordpress…
I’m using one of chris’ snippets specifically the embed a page inside of a page in wordpress:
< ?php $recent = new WP_Query("page_id=**ID**"); while($recent->have_posts()) : $recent->the_post();?>
< ?php the_title(); ?>
< ?php the_content(); ?>
< ?php endwhile; ?>
I’m using it as an editable sidebar so the client can easily add logo thumbnails to that little section
the snippet works great, except that when I paginate a section of my site (which is actually a clients site) the second page of the pagination appears in the sidebar instead of the correct page: (Click on page 2 and you will understand).
well I think (as I’m not entirely sure) that it was because the snippet code wasn’t within the loop… so since it was two divs one floating right (the our locations), and one floating left (the main content). I just put the right floating div on top of the floating left div putting it before the loop…
I’m not sure WHY it worked… but so far it seems to have worked… maybe someone can help explain it to me?