จาก Thai wordpress
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.
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.
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:
- The name of the link (in bold) and its description.
- The URL (location) of the link.
- The category that the link is in.
- The XFN relationship for this link.
- Whether or not there is an image associated with this link.
- Whether or not the link is visible to visitors on your site.
- 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 LinksAdd 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:
- 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.
- 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 LinksAdd 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 LinkManage 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.
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.
- Note: You can't delete the Blogroll category, but you can edit it. You can rename it if you prefer another name.
Adding a CategoryManage Links > Link Categories SubPanel. The Add Link form is farther down the page.
The following options are available:
- Name of the category. This is the name that will display on your site in your Links list.
Example: My Uber-kool Category
- 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:
Example: Random Example 2: Id, descending
- 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).
- 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.
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.
To save your changes, click Save Category Settings. This will retrun you back to the Link Categories section.
Deleting a CategoryLink 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.
Make your choice, and it'll send you back to the Link Categories screen.
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.
- 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.
To actually add the category, just click Add Category or Save Category Settings to save the information you've entered.
Importing LinksImport 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.
- Go to Blogrolling.com and sign in. Once you’ve done that, click on Get Code, and then look for the OPML code.
- 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).
- Select that text and copy it or copy the link/shortcut into the box below.
- or you can upload an OPML file from your desktop aggregator:
- Now select a category you want to put these links in.
- Click Import and the file will be imported.