How to make Duplicate Posts and Pages in multi sites - Wordpress - php

I want to make duplicate posts and pages on wordpress either by functions or a plugin, any suggestions.
Also, i want to use these duplicacy for multi site functionality. That is, if i create another site, it may inherit the posts and pages of master site.

You can do this with the built in export/import feature. Under the tools menu in the admin menu you can find these two options. Just export the posts and pages XML file. Then on your new site or multisites you can import that XML file. You'll have an option to download all media on import also, which will bring over the images, PDFs, etc.
Here's the documentation:
http://codex.wordpress.org/Tools_Export_Screen
http://codex.wordpress.org/Tools_Import_Screen

I have a subsite that contains the base setup for a new site.I use the "Multisite Cloner" plugin on the master site to specify that 'template' subsite whenever new subsites are created.
For duplicating posts/pages, you could use the export/import process.
But there is now (4 years later from your question) a plugin that allows you to duplicate a page or post from one subsite to another: Multisite Post Duplicator (https://wordpress.org/plugins/multisite-post-duplicator/ ). I have not used it yet (although I will be testing it soon), but it has good reviews and appears to be maintained.
I add this info now (four years later) because this question came up in a search for a similar need.

Related

Wordpress Development

I have one project of blog site to be developed in wordpress. I have no experience how wordpress works, I read Codex documentation, But didn't find the answer of my questions,
So Project Requirements are ,
1: Post Movie with Thumbnails,Links to Download or Streaming Websites,Genre(Taxonomy),Youtube Movie Trail,
2: User can Like,rate,comment,Add to watch list,Share with friends
3: I have database of more than 3000 Records, I don't want to insert it to the wp_posts Table for some reasons.
4: How to add javascript to Widgets,or Plugin (Maybe it's a stupid Question)
My problem is I don't know what is the write way to do it. There are Two Major things in WP
1: Plugin
2: Widgets
How can i use them in my project ? From Where Should I start First, I have done with the theme Development, And Some Basic Concepts of wordpress Like, Action,Filters. I can create this project easily with the PHP and JS . Don't suggest me any premade wordpress plugin or Widgets, I want to code it myself
What do you mean add javascript to widgets or plugins? You can include javascript by adding it to the Theme of the page.
Most of your development should be on a Theme. A Theme is essentially a collection of different page templates, styling and functions that will be used. Theme can also handle taxonomy and meta data.
Since you have a DB already what you could do is make a page template called "movie" that pulls an ID/Slug and retrieves it from the database to get the relevant information.
Helpful Links:
Taxonomy - http://codex.wordpress.org/Taxonomies
Queuing Scripts - http://codex.wordpress.org/Function_Reference/wp_enqueue_script
WPDB (Database Class) - http://codex.wordpress.org/Class_Reference/wpdb
I think there might be already some themes ready with the functionalities you want. Did you do a search for stock themes? I've come across a few for video/movies displaying with ratings, social sharing, etc. So your development work would reduce significantly.

Publish Wordpress Posts to external Database

I am developing a web application in Codeigniter (PHP) and I want to use Wordpress to do the admin side stuff for the application, like add new posts, Import data from files, etc. My application has a separate database of its own. How do I write the data published from the Wordpress Admin Dashboard into my applications Database?
In short, I need wordpress to write into two distinct databases when I hit the "Publish" button for a post.
You could use an WP Multi-User install with a plugin called Multi-post, that will allow you to save one post to multiple sites within the install.
You can do this by creating a cronjob, and check if some new post has been added to the WP database, and copy to your Codeigniter website database or any other needed operations can be done.

Integrating simple PHP blogging system into existing website

I want to, create blog page in my website.
There are bunch of huge blogging platforms such as: Wordpress, Blogger ... But the problem is, they are offering a loads of unneeded functions. Of course, I can create simple blog. But it will cost a lots of time and I don't want to reinvent the wheel.
So what I need is, "core" functions of blogging system such as:
Adding, removing, editing posts, inserting attachments, images o posts
Pagination
I don't want to integrate wordpress because of reasons that I explained above.
Any suggestions?
I used cutewnews for a while when I was new to coding (http://cutephp.com) it's pretty much the same as a blogging system. Create posts, edit posts, archive posts, categories, template is very customizable, allow/block comments, require users to register in order to add comments, block IPs, WYSIWYG editor, etc. It's all done in the back end and then you add a few lines of code in your page and the posts will appear. You can also designate how many you want to display per page. It's simple but effective and free. I believe there is a link at the bottom of the script going back to http://cutephp.com/ but you should be able to find it and delete it. It takes about 2 minutes to install and get set up. You don't even need mysql. Will work with any php frame work or coding style as long as you have the ability to create your own blank page where you can plop the code.

Moving data from custom blog to Wordpress?

Ok so i have this custom blog that i now need to move over to wordpress. I tried using the import features in wordpress but that didnt work as planned. The custom blog is written in php and has a userscomments table, authors table, and posts table. Is there an easy way to move all these posts over to wordpress and preserve all the comments per post.
If the custom blog doesn't have an export function that will dump its data into a format WordPress can read, then it may be that you'll have to roll your own. There are 2 approaches:
Do a database-only import, using code or SQL tools along with information from the WordPress Codex entry on the WP database. This will probably be fairly simple from a coding standpoint, but you have to make sure you get it right.
Use the WordPress API to create the posts based on the output from the old system. This will involve a bit more learning, but it's the Right Way™ to do it, and means that you learn the WordPress API rather than the database structure.
If I were doing it myself, I'd choose option #2.

Wordpress as CMS, Without Using It As Website Platform

What is the best method, if there is one, of using Wordpress as a CMS for users to input data while not actually building the website on the Wordpress platform?
One possible solution I've found is using a PHP class called "WPGet" (http://peter.upfold.org.uk/projects/wpget) which fetches directly from the database.
You could use Wordpress' API calls, but depending where your "custom built application" sits, it might require including numerous files in your code (not very fun/efficient)
I have a site that requires constant updating. It's a golf club site: results, news etc all updated via wordpress by the club, or individuals with interest (juniors, ladies, seniors each have a mini-site) - and not always by me - so i have a front end, the standard site with static .php pages, which i then feed data to, by calling on posts marked in categories from wordpress, relevent to the site's page. The coding is easy and it's a quick and simple way of using wordpress as a cms, but it does strip away most of the Wordprss functionality, eg. comments, But I even use it for galleries with lightbox.
Like i say - it's nothing major, but sounds similar to what you're asking...?

Categories