Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    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?

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    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?

  • #5
    New Coder
    Join Date
    Jun 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #6
    New Coder
    Join Date
    Jun 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •