OK Music
Member
Posted 1 year ago #
Hi, I was wondering if wordpress had a function that let you manually assign a pageid to an external page -- we need this mostly because we have a ecards script which is running under the directory of one of the pages, and would like the header to retain its "active" status among multiple pages under the same directory.
Any ideas?
You could use http://wordpress.org/extend/plugins/redirection/ to redirect a WordPress-based URL to the external page. Or you could do redirection from the server side.
OK Music
Member
Posted 1 year ago #
Sorry, maybe I should've been more specific -- basically the ecards script has multiple files that needs to run under the same page directory (/ecards/index.php, /ecards/compose.php, /ecards/processcompose.php)
After some editing and templating we finally got the index page to work under the wordpress theme and header. The problem is when it tries to access the other files it doesn't generate the correct header information (like the site's "active" link) because wordpress can only treat 1 page at a time, it seems. I think we can modify the external pages to suit what we need, but we need to make wordpress think that it's on the same page, rather than consider it to be a different one.
There's a working example here of what we're trying to fix:
http://okmusic.me/ecards/
Thanks!
Couple questions:
Are you using WordPress MultiSite?
Is the ecard script something you wrote?
Why not separate the ecard script from WordPress and place it in it's own directory? You can still use the same theme, just not through WordPress.
OK Music
Member
Posted 1 year ago #
Well, it was running in its own directory for a while but we made the decision that we would like to see the script better integrated with the wordpress site. We mostly need this because we have members who only have a very basic knowledge of html and css, so having it run through wordpress would make accessing and making small changes much easier.
The ecards script is something we borrowed and heavily modified for our own use since the author no longer wished to support it.
Oh wait, is this the wrong forum for this? I didn't know multisite was a product.
Yup, Multi Site is a separate thing. You really should be in http://wordpress.org/support/forum/plugins-and-hacks or http://wordpress.org/support/forum/how-to-and-troubleshooting
But in general you should consider writing the ecards scripts as a plugin for WordPress, or finding a similar product that is already a plugin. http://codex.wordpress.org/Writing_a_Plugin
OK Music
Member
Posted 1 year ago #
Thanks! Appreciate the help.