How to Sort WordPress Posts by Title
By default WordPress posts are ordered by posting dates, the last posted articles come first. That makes sense for most WP sites because blogs after all are cronicle journals. But WP can be used for many types of websites rather than blog. In many cases you would prefer to display articles by […]
Create a Archive Page in WordPress
If you have blogged for a while, the monthly archive list could be quite long. It may take big real estate in the side bar. The alternative is to create a separate page just for archives.
Many Ways to Archive Contents in WordPress Websites
Many WP themes provide monthly archive links in the sidebar. This display is realized by PHP code as:
<?php wp_get_archives(’type=monthly’); ?>
The monthly archive is not bad. The problem is, after your blog runs for many months, the archive list becomes really long, - it takes a lot of spaces and looks ugly.
How Are Feeds Generated in WordPress?
In WordPress, the feeds of posts and comments in formats of RSS or Atom are generated automatically and provided via specific URLs for syndication. Almost all themes provide feed links in either sidebar or header/footer. wordPress uses a build-in function “bloginfo” to get the feed URL. […]
How to Control Sort Order in Category
Category sort order had been on WP blogger’s wish list for a while. People want an option to specify sort order on each category item, just like what we can do for pages, — where you can give each page a Page Order number to display pages in the order you want.
Create a Blogroll Page
Most WordPress themes put blogroll (a list of links) in the sidebar. This is fine if you only have less 10 links in your blogroll. But when your blogroll grows, the list can be very long, thus it’s no good to display it in the sidebar. In this case, the solution is […]
Add Edit Button to the Post Title
In most WordPress themes, a “Edit” link or button is coded for post title thus when you logged in you’ll see a Edit link or button displayed next to the article title or right after the article. If you click the link, it brings you directly to the Edit panel.
How to Show Total Post Count for a Blog
My website provides WordPress blog profiting tips. I want to show the total number of tips posted, and make the number count self-updated automatically when new posts are entered. I found the following WP tag comes handy for my purpose: