sidelsky
Member
Posted 3 years ago #
Hi, here's what I'd like to do...
Let's say I had a paragraph of copy in a PAGE. I then wrapped this paragraph with a TAG and or ID.
I could the SUCK or PULL this paragraph of copy into multiple pages.
I know all about .php includes but they would not solve this particular problem. Perhaps you know of a plug-in that could perform this task?
The original copy could be edited in WP and would then be updated thought all the pages that it was included in.
Thanks for you time.
sidelsky
Member
Posted 3 years ago #
Hi...
Thanks for this.
This seems to work if I place the php directly into into another php page.
BUT what I'm trying to do here is place the code into a page within the "Edit Page" part of word press. The reason why I want to do it this way is my client will NOT have access to the structure of the site and would need to include from with the wysiwyg page editor with WP.
The issue there is if I paste:
<?php iinclude_page(2,'displayTitle=true&titleBefore=<h2 class="sidebar-header">'); ?>
WP automatically wrapped <p> tags around the code thus breaking it.
Any help would be great.
sidelsky
Member
Posted 3 years ago #
I think I solved the problem - and all thanks to you.
All I need to is create a template page with the php include included and job done.
THANK YOU!