Tag Info

Hot answers tagged

7

W3-Total Cache has a feature that will scan all your posts and import any external images into the media library and change the paths to the new location. See Screenshot


6

A new file, import.php: <?php define('WP_INSTALLING', true); // this is required. i forget why! include '/path/to/wordpress/wp-load.php'; include ABSPATH . WPINC . '/registration.php'; // wp_insert_user() $userdata = array('user_login' => 'jdoe', 'user_pass' => 'foobar'); $user_id = wp_insert_user($userdata); Check wp_insert_user() for other ...


6

Put list in PHP array, loop through it, use wp_insert_term() on each.


5

Sounds like you have successfully gotten all 300 Pages imported based on the comments. (Regardless of how you did it, either by using the WordPress import plugin or by using some MySQL tool like phpMyAdmin or Sequel Pro or whatever)... You have 300 pages in the wp_posts table. Let's start from here then... The ACF plugin uses the wp_postmeta table to ...


4

To be ON TOPIC on the QUESTION (firefox) i dont think the approach to use delicious as intermediate step is preferred because: you lose the hierarhical taxonomy applied in firefox (they way you structured things) you lose the favicons as gathered in firefox you lose the information added by dividers between links you lose information on the order of ...


3

Wordpress should behave the same, only dependent on your server resources. I hope you have a dedicated server because if not then you will experience severe outages and possibly cancellation of your hosting service. Wordpress is merely databases and PHP, so amount of files will not affect its use. It is stable. You could have a billion or trillion or ...


3

Try Search and Replace plugin which is A simple search for find strings in your database and replace the string. You can search in ID, post-content, GUID, titel, excerpt, meta-data, comments, comment-author, comment-e-mail, comment-url, tags/categories and categories-description.


3

Unless there is a core Wordpress import filter available for your CMS ( see http://codex.wordpress.org/Importing_Content ) or a plugin for a CMS not covered by core WP ( see http://wordpress.org/extend/plugins/search.php?q=import ), or a Google search for your database schema doesn't reveal anything, you need to roll your own importer. The best way is to ...


3

This script is a proof of concept (tested and working), it is not a plugin and is meant to be hacked with, it assumes a few things: It uses wp_insert_post so it's advised you do not hook it into any admin hooks, so just run it once! The images must be in the wp-content\uploads folder, changing this would require more hoops to jump through. The example ...


2

How can I write a bulk MySQL command to add in the value wp_capabilites='a:1:{s:10:"subscriber";b:1;}' into each user_id except 1, 2 and 3 ie. the newly imported users? You don't. That is a serialized array which is a PHP construct. MySQL has no idea what to do with it. To the database, it is just an string. To PHP it is a representation-- a ...


2

Two things I could imagine: Check the post_modified value. Maybe import creates a definitive timestamp that you could use. You'll still have to save the import date somewhere so you can check against it. I do some post importing via a stream/HTTP response (this is not the native importer). During the import, I map my SysBot Plugin user to every post that ...


2

I would not export and import posts as a remote publishing strategy. That is going to be a lot of trouble and probably prone to error. You will also have issues with media uploads that you will have to sync between the local and remote servers and with file URLs that you will have to constantly update with something like Velvet Blues Update URLs. I expect ...


2

DomDocument is a PHP extension. It is either not installed or is disabled. You will need to install that module and/or enable it. You will need server level access to correct it. That is, you will need to be able to configure PHP. How you do that depends on what kind of server you have, so I am not sure what else to say at this point. Perhaps if you were ...


2

I relentlessly searched and read until I found an answer! Turns out, the right thing to use is actually MetaWeblog API and XMLRPC, which you'll have to activate as it is disabled by default. First thing, visit the Settings menu in your admin panel and navigate to "Writing". Scroll down until you see the XML-RPC check box under "Remote Publishing". Once this ...


2

This is really more of a server admin question than Wordpress. Error logs and php.ini file locations can vary depending on the server OS. You need to change the upload and timeout limits for php. Do that either in the main php.ini file or enable php.ini in your web directory and try: max_execution_time = 120 max_input_time = 120 memory_limit = 128M ...


2

Not my area, but this article made some splash in WP news recently - How To Run A News Site And Newspaper Using WordPress And Google Docs. It mentions InDesign integration as well (although in opposite direction, import from WordPress) and that all code is open source.


2

The correct place is the current setting I would say. So if you now use one upload folder (instead of years / month subfolders) go with that one (might get very full, but easier to sort. So just moving all files from the year / month subdirectories into the uploads directory and changing the URL-Paths in the database should normally do the job. After all is ...


2

Googling for "split wxr file" returned several results, including python script for splitting .wxr file GUI for splitting WXR files (OSX and Windows) .Net splitter for WXR files Haven't tried any of these, but the comments look positive.


2

Afaik: There's a (hidden?) button for TinyMCE that cleans up stuff imported from MS Word. You click the button insert (copy/paste) the stuff from Word and TinyMCE should do the rest. Second: You can export as XML from InDesign. Why not use that? Pulling in XML data should be much easier. I'm pretty sure that you could also add a new table in DB for the XML ...


1

If it was me, I would worry more about the ability to get content out of InDesign, and not getting content into WordPress. Assuming you script data from an InDesign file into a middleware connector (PHP or anything else really), I think XML-RPC would definitely be the way to go to get that content into WordPress. Aside from that API being fully flushed out ...


1

As far as I know there is nothing native in WP to parse CSV files and stuffing this into database directly doesn't seem like a good idea either. You can parse your CSV with PHP, see fgetcsv() for starters. Then use update_user_meta() to create those values.


1

You should write a custom importer and register the custom fields before the import if WP doesn’t know them. I’ve written an importer for a CSV table with user data and custom user meta fields some time ago. It is quite old and all messages are in German – but it is still working. If you need just an example, I could put it online despite its embarrassing ...


1

To answer your question... Yes, it's doable. But to give you some pointers into the right direction... I've known some folks who have had good success using the WordPress Importer plugin. You could conceivably export your geo data from your database (using whatever DB management tool you're comfortable with) to the import format that this plugin expects. ...


1

Maybe this is the answer: http://mansurovs.com/tech/wordpress-does-not-import-categories-and-tags (from there) : Make sure not to delete the original “Hello World!” post that gets automatically created by WordPress. If you have already deleted it, create a new dummy post that you can later delete. Make sure that the WordPress import process is successfully ...


1

I ended up writing a bunch of MySQL statements. My process went: Add users into wp_users. Add first name into wp_usermeta. Add last name into wp_usermeta. Add nickname into wp_usermeta. Add last activity into wp_usermeta. (This is important for BuddyPress; otherwise, users won't show up in the members-loop) Add name to BuddyPress. Add custom "phone" field ...


1

The "Cleanup uploads folder, Media Library db structure" Question has some plugin suggestions that might be related - albeit not exactly that doing what you ask for. But maybe the information is useful.


1

I would use a plugin for that. When done, remove the plugin. This one by Dagon Design seems to do the trick, but it was not updated for wordpress 3. Don't know if it will work, so you migth want to try it on a sample wordpress.


1

There are a few ways I might approach this. The least intrusive would be to add a few empty spans or divs on your page and use the jQuery get method to fill these with text from the appropriate file. Another possibility, but less secure would be to use a plugin that allows you to execute php code in your page. There are some serious security risks to this ...


1

@Jan Fabry: You are probably going to need to tackle each case separately, i.e. the Blogger hosted images and the ones outside wp-content, etc. Here's a plugin for importing from Blogger; it hasn't been updated in a while but may still work or at least have code you can use: Blogger Image Import Plugin (notes) There's also an older plugin that may or ...


1

Best thing to do is read the docs: http://codex.wordpress.org/Tools_Export_Screen and http://codex.wordpress.org/Importing_Content#WordPress and work with WXR files rather than trying to export directly from the database. You also have the option on Import to grab images. Or you can merge the contents of the three wp-content/uploads/ directories, but be ...



Only top voted, non community-wiki answers of a minimum length are eligible