Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:PotterSys/Media Managment

This article is a ROUGH DRAFT. The author is still working on this document, so please do not edit this without the author's permission. The content within this article may not yet be verified or valid. This information is subject to change.

In WordPress 2.0, media managment has been improved. You can manage your existing files, and upload new ones without moving from Write page. In order to use all these tools, you have to change the chmod of wp-content folder to 777.

Upload a File

If you have not changed permissions in order to write in wp-content folder, you will not be able to use the uploader. If you do not know how to change this value, please read Changing File Permissions.

  1. Login into WordPress Admin Panel, and click on "Write" in your main menu. The Media Manager windows is below Post Editor. The Upload tab is shown by default.
  2. Write on "File" text the path to your file. You can click on "Browse" button to navigate into your hard disk and find the file you want. In "Title", write a little description about your file. If you want, use "Description" to give more details about file (for example, when the photo was taken, or about what did you talk in your podcast)
  3. Click in "Upload" button
  4. After your file has been uploaded, the "Browse" window will show the file ready to be used. You can see all the uploaded files in the "Browse All" window.

Insert a file in a post using WYSIWYG editor

The WYSIWYG editor lets you write your posts without thinking in HTML code to format it, and you will be able to preview your post (including images) without moving from your Write page.

  1. Login to the WordPress Admin panel, and click "Write" in the main menu.
  2. If you have not uploaded any files at the moment, or you want to use a file you have uploaded earlier, click on "Browse all" tab. If you have just uploaded, the "Browse" window shows your file
  3. Click over the file you want to use, and select "Send to Editor" option. The file will go to the Post editor. If you are using Mozilla Firefox, you can also drag and drop the file into Post editor.
  4. You can use the white squares in every corner of image to resize your image in your post (however, resize will not change the original file size), or move inside the Post Editor to insert wherever you want it in your post

Insert a file in a post without the WYSIWYG editor

If you do not want to use the WYSIWYG editor, and/or you know some HTML; you can use the classic Post editor, letting you modify your HTML directly

  1. Login to the WordPress Admin panel, and click "Write" in the main menu.
  2. If you have not uploaded any files at the moment, or you want to use a file you have uploaded earlier, click on the "Browse all" tab. If you have just uploaded, the "Browse" window shows your file.
  3. Click over the file you want to use, and select "Send to Editor" option. The file will go to the Post editor.
  4. You will see the HTML code inserted into your post. You can cut and paste it wherever you want, and modify values such as width or height

Other options

Clicking over the image, you can see a menu, with some options to be used in your posts

For images

  • Thumbnail:...
  • Linking options: With this link you will be able to change the linking properties of the image. The options are:
    • Not linked: The thumbnail image will just be shown
    • Link to Image: The thumbnail image will link to the image in its original size
    • Link to Page: The thumbnail image will link to an special page, where you can see the title and description written when you uploaded the file.
  • Send to editor: Send the image to editor, using the value you gave in Linking Options
  • Delete: Delete the image from database
  • Close Options: Close the menu after use

For sound files

  • Linking options: With this option you will be able to change the linking properties of the file. The options are:
    • Linked to file: The link sent to Post Editor will be the file itself
    • Linked to page: The link sent to Post Editor will go to a special page, where you will see the title an description saved with the file
  • Showing options: You can configure how the file is shown inside the post. The options are:
    • Using Title: The value shown as link will be the title
    • Using Filename: The filename will be shown as a link in the Post
    • Using Icon: When you publish the post, you will see an icon used for linking your file
  • Send to editor: Send the sound file to editor, using the values you gave in Linking and Showing options
  • Delete: Delete the sound file from the database
  • Close Options: Closes the menu