Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-03-2010, 01:21 PM   PM User | #1
pip4u
New Coder

 
Join Date: Jun 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
pip4u is an unknown quantity at this point
Cool automatic duplicate post (on a new, automatically created page)

Hi, I am wondering if this is possible and if so how it could be done: whenever a new post via WordPress is submitted such that it appears on a new page (let's call it page X), I need a duplicate of that post to appear on a different page (let's call it page Y) in which page Y was created only when the original post was submitted.

Here's an example:

Say I submitted a post via WordPress, with the post directed at the following URL (in which the URL became valid only after the post was submitted):
http://www.principalinternational.co...-5-or-10-years

Now, I need it so that this same post appears on another page, in which this other page was automatically created at the same time the original post was created, and in which the post on this other page exists only by automatically drawing content from the original post. There should be no need for manual intervention (in the way of having to manually create a duplicate post via WordPress, or having to manually create the duplicate page, etc.).

Is this possible?
pip4u is offline   Reply With Quote
Old 06-03-2010, 02:13 PM   PM User | #2
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
That sounds like a Wordpress-specific issue that has little to do with PHP itself. A Wordpress forum might serve you better.
__________________
Are you a Help Vampire?
tomws is offline   Reply With Quote
Old 06-04-2010, 10:07 AM   PM User | #3
pip4u
New Coder

 
Join Date: Jun 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
pip4u is an unknown quantity at this point
I've tried the main WordPress Support forum already, consistently bumping my topic but never receiving any response. I guess I'll search around for third-party WordPress Support forums. I would've thought there would be some PHP involved though.
pip4u is offline   Reply With Quote
Old 06-04-2010, 12:39 PM   PM User | #4
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
There may be a bit of PHP work in it, but I'm not sure. In Drupal, we can do this without ever touching the code by setting up a custom view (and, perhaps, defining a custom content type). Common stuff there. I'm unfamiliar with Wordpress's operation, though, so I don't know what's available.
__________________
Are you a Help Vampire?
tomws is offline   Reply With Quote
Old 06-07-2010, 04:04 PM   PM User | #5
pip4u
New Coder

 
Join Date: Jun 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
pip4u is an unknown quantity at this point
Arrow

Okay, no problem. Thanks for your help.

Btw, I just posted this here because WordPress code includes a lot of editable PHP (in addition to HTML, JavaScript, etc.), and I can't seem to find a forum here dedicated to WordPress.

For anyone with significant knowledge of WordPress, your help would be much appreciated here:

I have installed the "Duplicate Post" plug-in (http://wordpress.org/extend/plugins/duplicate-post/). However, after duplicating a post, the URL of the post is still http://www.site1.com/category/post (just an example URL; assume site 1 is the site where WordPress is installed), and in this URL I can't seem to edit anything except "post", i.e. I can't edit the rest of the URL. I would like to be able to edit the URL so that the post appears on another site (let's call it site 2) i.e. so that the URL of the duplicate post would be something like http://www.site2.com/category/post.

If I can't do this directly with the Duplicate Post plug-in, can someone explain to me any indirect methods?
pip4u is offline   Reply With Quote
Old 06-08-2010, 11:13 AM   PM User | #6
pip4u
New Coder

 
Join Date: Jun 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
pip4u is an unknown quantity at this point
Never mind, I think I've figured it out! Just duplicate posts via the Duplicate Post plug-in to a special WP category in site 1, have this WP category use a template/css that matches site 2's template/css, and then hide site 1's URL with site 2's URL via domain masking. Problem solved until further notice.
pip4u is offline   Reply With Quote
Reply

Bookmarks

Tags
automatic, creation, page, php, wordpress

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:22 PM.


Advertisement
Log in to turn off these ads.