Links Manager

จาก Thai wordpress

ข้ามไปที่: นำทาง, ค้นหา

แม่แบบ:Oldversion

เนื้อหา

WordPress allows you to store a set of external links, also known as your blogroll. These links can be put into categories, imported, exported, added, deleted, and edited. The link categories can also be added, deleted, and edited. This article describes how to do all of the above, using the Links section of the WordPress Administration Panels.

Managing Links

When you click on "Links" in the main Administration Panel, you will come first to the Manage Links SubPanel, where you will see a list of all of your links. In WordPress version 2.1, click the Blogroll Panel in the main Administration Panel, and the Manage Blogroll SubPanel.

Listing Links

In the Manage Links SubPanel, your links are displayed in a tabular format. Each link is a row in the table, and the table has the following columns:

Name 
The name of the link (in bold) and its description.
URL 
The URL (location) of the link.
Category 
The category that the link is in.
rel 
The XFN relationship for this link.
Image 
Whether or not there is an image associated with this link.
Visible 
Whether or not the link is visible to visitors on your site.
Action 
Section containing links to Edit and Delete the link, as well as a checkbox for Managing Multiple Links.

You can change the display in the following ways:

Restrict to just one category
Choose a category from the "Show Links in Category" drop-down (or choose "All" to change back to displaying all links) and click Show, and the list will be restricted to the category you chose.
Change the sorting order
Choose one of the options in the "Order By" drop-down and click Show, and the list will be sorted by Link ID, Name, URI, Description, Owner, or Rating. By default, the links are sorted by name.

Managing Multiple Links

You can modify many links at once by using the options found at the bottom of the SubPanel. Changes are applied only to the links above whose checkboxes are checked. You can quickly toggle all of the unchecked boxes to checked, and all checked boxes to unchecked, by clicking on "Toggle Checkboxes". The following actions are available:

Assign Ownership
Each link has a user who "owns" the link. You can change the ownership of all the checked links by selecting a new owner from the dropdown and clicking "Go".
Toggle Visibility
Links can be visible to or hidden from visitors to your blog. Clicking "Toggle Visibility" immediately makes all checked links previously marked with Visibility "Yes" to "No", and all checked links previously marked with Visibility "No" to "Yes".
Move to Category
You can change the category of all of the checked links by selecting a new category from the dropdown and clicking "Go".

Adding Links

When you click "Links" in the main Administration Panel, and then click "Add Link", you will come to the Add Link SubPanel, where you can add a new link to your list. (In Version 2.1 or later of WordPress, click on "Blogroll" and then "Add Link".) The screen looks similar to the image to the right, and has the following sections:
Basics 
All of these fields, except for the Short description, are required. Sample input is shown in parentheses.
URI or Link Address - The URI of the web page you're linking to, with the http:// (http://example.com/).
Link Name or Name - The text that will be shown on your blog screen for the link (John Doe's Blog).
Short description or Description - If your Theme includes it, this descriptive text will be put on the screen after the actual link. It will also be shown to the user as a "tool-tip" when they hover their mouse over the link. (The blog of John Doe, unknown blogger).
Category - Select the category for the link. Note that if the category is an "Auto-Toggle" category (which will be shown on the screen), only the latest link added is actually shown on the screen, and older links in the category are hidden. In Version 2.1 of WordPress, links can be put into multiple categories, by checking them in the Categories sidebar. In Version 2.0.x, only one category can be chosen in the drop down list. (Blogroll)
Link Relationship (XFN) 
XFN (Xml Friends Network) is a way to define your relationship with the linked person. For example, if you work with Harriet Smith, and you link to her blog, you can check co-worker or colleague, symbolizing that she is one of those. Same with crushes, dates, and you can also say whether this is another one of your sites.
XFN relationships are optional for WordPress links. You can leave everything in this section blank and all your links will still work. Defining Relationships with XFN makes the links defined on your weblog more understandable to machines that will process your pages.
rel - Specifies the rel attribute that will be put onto the link's a tag when displayed on the screen. Some possible values are nofollow (if you don't want search engines to follow the link), author, and smart. Multiple rel keywords should be separated with spaces.
Advanced 
The Advanced fields are not required, but can add extra information to the link. Note that a few of these fields have been moved into their own sections in Version 2.1 of WordPress.
Image URI - An image to be displayed with the link. This can either be an absolute URI (http://some.site/images/image.png) or a relative path (/images/some.png). You may want this to be rather small, around 16x16, similar to a favicon.
RSS URI - URI of the RSS feed associated with the Link, which will be displayed next to the Link itself (if your Template allows it). Example: http://example.com/feed/
Notes - Any notes you want to store, for your own internal use, about the Link. Example: Nice design, from #wordpress.
Rating - A ranking of the Link, which can be used to sort links within Categories.
Target - Specifies the target attribute that will be put onto the link's a tag when displayed on the screen, which tells where the page will appear if the user clicks on the link. There are three options:
  • none: open the link in the same window or frame (default).
  • _top: if you're using frames, open the link at the top level of the frame system.
  • _blank: open the link in a new window.
Visible Whether or not the link will be shown on your site. You can hide a link (temporarily or permanently) by choosing "No" for the Visible attribute.

When you have set all the options you are interested in, click Add Link to add the new Link to your blogroll.

Editing Links

To edit a link, in case of an error or change in the link information, WordPress provides an Edit Link option.

The Links > Manage Links subpanel features an Edit button on the link's table row. This brings you to the Edit a Link subpanel.

This mode is essentially the same as the Add Link SubPanel. The only difference is that the buttons to save your work are called "Save Changes" instead of "Add Link". When you're done you can hit one of the three Save Changes buttons, whichever one is closest to the section that you're working on.

From within the Edit Link panel, you can change any or all of the options for the link, including XFN relationships, category, address, description, RSS URI, or any other detail.

Deleting a Link

To delete a link, go to Manage Links. From the table list of links, identify the link you wish to delete. Click the Delete link for that link to delete it. Remember, you will not have a chance to cover from this delete. It makes a permanent change to the database.
ภาพ:Managing Links-deletelinkcat.png
Did you really want to delete that link?

A popup window with a confirmation should appear. Choose OK or Cancel if you hit the Delete link by accident. Remember, this is the only chance you have.

After making your choice, you will be directed back to the Manage Links page.

Link Categories

Links in WordPress can be organized into categories, all the better for organization. The default installation of WordPress automatically sets one category, Blogroll. You are given the ability to add, edit and delete categories.
Note: You can't delete the Blogroll category, but you can edit it. You can rename it if you prefer another name.

Adding a Category

To add a link category in WordPress 2.0, navigate to the Manage Links > Link Categories SubPanel. The Add Link form is farther down the page.

The following options are available:

Name 
Name of the category. This is the name that will display on your site in your Links list.
Example: My Uber-kool Category
Show 
What you want to show with the category. You can choose any, none or all of these options. All of these depend on whether you have entered values when you added the link:
  • Images associated with the links in this category
  • Descriptions of links in this category
  • Ratings of the links in this category
  • Updated indicates whether a link has been recently updated or changed. Note: Updated means when you last updated the link entry, not when the linked webpage was updated.
Example: Image, Description and Rating

Example 2: Description
Sort Order 
How you want the links to be sorted when they're displayed. Possible options are:
  • Name
  • ID
  • URL
  • Rating
  • Updated
  • Random
Example: Random

Example 2: Id, descending
Limit 
Got a whole bunch of links in that one category? Put a number in here to limit how many are shown. If you set the Sort Order to Random, this will show different links every reload/view (if you have enough links in the category, of course).
Example: 5
Toggle 
Auto-Toggle hides all other links in this category so that the new link is the only one displayed on your site. If used, only this link will be visible in the category, even if you try making them manually visible in the Manage Links subpanel. Usage: YES enables and NO disables Auto-Toggle.
Example: Yes

Editing a Category

To edit an existing category in WordPress 2.0, go to Link Categories SubPanel. From the table list of link categories, choose the category you wish to edit and click the Edit link.

The category fields to edit and change are the same ones in the previous section on adding link categories.

To save your changes, click Save Category Settings. This will retrun you back to the Link Categories section.

Deleting a Category

To delete an existing category, use the Link Categories SubPanel.

From the table list of categories, find the category you wish to delete and click the Delete link. Remember, once you have deleted a category from your database, it cannot be undone. This is a permanent delete.

ภาพ:Managing Links-deletelinkcat.png
Do you really want to delete that category?
A popup window will appear requesting confirmation of the delete. Choose OK to confirm the delete or CANCEL to back out of the delete.

Make your choice, and it'll send you back to the Link Categories screen.

Formatting

In WordPress 2.0, you can alter how WordPress displays the list of links from this category by modifying the text found in the following three text boxes. However, these options are only used by some themes.

The following template tags are used only with Link Manager:

Before Link
This string of characters or HTML tags which will be inserted before every link in the list of links from this category.
Example: <li>
Between Link and Description 
When a category is set to show the description with the link, this is what separates them.
Example: <br />
After Link 
This string of characters or HTML tags which will be inserted after every link in the list of links from this category.
Example: </li>

To actually add the category, just click Add Category or Save Category Settings to save the information you've entered.

Importing Links

WordPress makes it easy to import links into Link Manager. The Import Links SubPanel takes an OPML file from a link manager service such as BlogRolling, Blo.gs, and others and imports the information into Link Manager.

OPML (Outline Processor Markup Language) is an XML-based format for transferring information in an environment-independent form. More information at OPML.org.

From the Import Links SubPanel, you have two choices. Depending upon the services you use, you will choose one of these. If you use another service that isn't on there, proceed with similar actions on that service. If you don't know how to, check with your service.

  1. Go to Blogrolling.com and sign in. Once you’ve done that, click on Get Code, and then look for the OPML code.
  2. Or go to Blo.gs and sign in. Once you’ve done that in the 'Welcome Back' box on the right, click on share, and then look for the OPML link (favorites.opml).
  3. Select that text and copy it or copy the link/shortcut into the box below.

    Your OPML URL: Enter the OPML address

  4. or you can upload an OPML file from your desktop aggregator:

    Upload this file: Enter the OPML address

  5. Now select a category you want to put these links in.
  6. Click Import and the file will be imported.
รับข้อมูลจาก "http://codex.wordthai.com/Links_Manager"
เครื่องมือส่วนตัว