-
▼
2011
(334)
-
▼
June
(28)
- How to Place JavaScript Into WordPress Pages
- How to Choose a WordPress Business Theme
- How to Use Google's AdSense With WordPress
- How to Change WordPress From Strict to Transitional
- How to Automatically Link WordPress Articles
- How to Find a WordPress Post ID
- How to Insert a Map Into WordPress
- How to Install FeedBurner for WordPress
- How to Add Clickable Logos in WordPress
- How to Add a Wordpress Blog to a Static Site
- How to Remove Phoenix Exploit From Your WordPress ...
- How to Access WordPress on HostGator
- How to Get Vietnamese in WordPress
- How to Add AdSense to a WordPress Theme
- How to Use PHP in WordPress Editor
- How to Do a Complete Uninstall of Wordpress From H...
- How to Use WordPress Mobile Edition
- How to Make a WordPress for Facebook
- How to Access Login to WordPress on your Web Server
- How to Embed Tweet Box With WordPress Plug
- How to Insert an Image Into a WordPress Blog Witho...
- How to Stop the Alphabetical Sorting of WordPress ...
- How to Upload Word Documents to Wordpress
- How to Center Headers in CSS on WordPress
- How to Use Images in a WordPress Template
- How to Create a Sitemap in WordPress
- How to Convert a WordPress Template to Fluid Width
- How to Make a WordPress Thumbnail Redirect to an E...
-
▼
June
(28)
adsense
How to Stop the Alphabetical Sorting of WordPress Categories
1. Log in to the WordPress dashboard, located at the 'wp-admin' directory of your website. Go to 'Appearance' and click the 'Editor' link to load the 'Edit Themes' screen.
2. Locate the template file used to list your categories under 'Templates' and click its link to open the file in the editor. Find the start of the WordPress loop:
Add this code above that line:
3. Add the type of category sorting you want between the equal sign and the single quote mark in the 'query_posts()' function. Your choices include none, ID, author, title, date, modified, parent and rand (short for 'random'). A few other options exist, but those options will not help you much in this case. Here is an example of a query that orders categories by their IDs:
4. Find the end of the WordPress loop:
There was an error.
The code will not look identical in every theme, but this example gives you the basic idea. Add this code below the '
' line to reset your query:
5. Save your work by clicking the blue 'Update File' button. Use the same solution on any other template file that lists categories as needed.
3:54 AM | Filed Under | 0 Comments
Post a Comment