AT the plugin page you linked above it states quite clearly that it looks for the page_id which means looks for Pages created with WP. Other Pages don’t have page_id.
So probably it won’t do what you want.
Isn’t it the include that looks for the Page and not the other way around?
There must be a way to include a Page via a regular PHP include if I knew where to call the file from. Or maybe not, since it’s in a database.
If the include page plugin isn’t the way to include Pages in non-blog templates, how is this done? Somewhere at this site it says that this whole site could be set up with WP 1.5 as a CMS. That’s what I’m trying to do with another site for a client.
Thanks for your help,
Lois
What is this non-blog template that you speak of?
Is this a WP page template that could be assigned to a WP Page as a template? Yours doesn’t sound like one.
To use a function from a WP plugin, you have to call the function from a WP Page–the one that includes wp header and stuff. And I believe that you could employ a WP Page for what you want to achieve. From that WP Page, you could, then, include the content of another WP Page.
Read up the following if you haven’t. http://codex.ww.wp.xz.cn/Pages
>> What is this non-blog template that you speak of?
Any template that isn’t a blog one. I want to be able to provide business sites that clients can make small changes to (e.g. pricing, product descriptions) without knowing HTML. The templates are custom or existing ones, and the content will be managed (I hope) via WP.
>> To use a function from a WP plugin, you have to call the function from a WP Page–the one that includes wp header and stuff.
Maybe without the WP header and stuff. I’d read through the Pages page, but it was so much information that I didn’t take it all in before. This time, I added the 5 lines to the top of the template and put the template in the folder of the theme I was using. I didn’t understand the drop-down option mentioned under “What Template is used to Display a Particular Page?” but I changed my template to page.php, and voila! my template now appears with the content. I used 3 Page includes on a 3-column page, and the page now has 3 columns of content that a client can modify.
Just one problem, though. The plugin appears to strip out the HTML tags, leaving everything one long paragraph. Someone mentioned this in a post at the plugin page, and the response was that maybe there was a tag mismatch of some sort. ?? I hardly have any WP tags, which might be the problem.
I’m going to try adding in the WP header and stuff. If anyone has any other ideas, I’m interested.
Thanks very much, alphaoide and moshu. We’re getting there. Once all the steps are clear to me, I’ll write them out so that other people can figure out this process more easily.
Lois
To follow up on this part:
>> The plugin appears to strip out the HTML tags, leaving everything one long paragraph.
Brent, who created this plugin, was helpful. He explained that with this plugin, WP doesn’t insert the HTML because it does that only within the normal WP loop. His plugin calls the content outside of this loop, so you need to add the HTML yourself with it.
Thanks, Brent.
Lois
i just tried the new improved version of this, and neither version works… I did everything that was said to do, and i even searched here thouroughly with no luck… it’d be nice if it worked though… I’d like to put items from a page into the sidebar, a top 5 list if you will…