query posts and iinclude_page plugin not working together within my website…
-
Alright so I’m creating a make-shift CMS for https://www.hendersoninsurances.com
and I’m running into a few problems with displaying a “blog-roll/loop” on the sidebar of the page, and includes from static pages that were created in wordpress, at the same time. I’m very new to php and wordpress so forgive me for being naive.The page in question is here:
https://www.hendersoninsurances.com/pages/life.phpI’m using this code at the top of the page in conjunction with “the loop” to display the blog-roll in the sidebar of the page…
<?php // Include WordPress define('WP_USE_THEMES', false); require('../wordpress/wp-load.php'); query_posts('showposts=5'); ?>
…but I also had to download a plugin called “Improved Include Page”,
and use this line of code:
<?php if (function_exists ('iinclude_page')) iinclude_page (77)?>
wherever I want to show the content from static WordPress pages within my site.I was having trouble getting the content from the pages to show up correctly until I deleted the line “query_posts(‘showposts=5’);” from the top command. Now the page includes are working beautifully, but the blog-roll disappears. I can’t get them to BOTH show up at the same time on the same page. Someone help me through this, PLEASE!!!
Thank you for your time in advance.
- The topic ‘query posts and iinclude_page plugin not working together within my website…’ is closed to new replies.