Grimag

  • Plugins
    • Social Media
    • Affiliate Marketing
    • Anti-Spam
    • Community
    • Content Promotion
    • Hack prevention
  • Themes
    • WordPress E-Commerce
    • WordPress for Business
  • Social
  • E-Commerce
  • Disclaimer
  • About
Home How To Sort WP Posts Without Making New Queries

How To Sort WP Posts Without Making New Queries

Writing efficient code is not always easy. There are plenty of folks who write scripts that can be reused and do wonderful things. But it takes talent and effort to develop scripts that are as efficient as possible. Take sorting WordPress posts for instance. Some developers don’t have trouble making multiple identical queries in their code. Why do that when you can use Sort Query Posts to sort your posts without making more queries than you have to.

The plugin is pretty easy to use. It essentially saves you from having to run multiple queries to sort your posts. Posts can be ordered by author, comment_count, date, id, menu_order, modified, parent, and title.

This script is especially helpful if you want to show the same content in multiple places on your pages. The function is fairly easy to use and can improve the performance of your code. The code is lightweight which helps.

Oct 18, 2011Cyrus

Related

Integrate SoundCloud Tracks in WordPressBuild a “block” style Website Using WordPress
October 18 Plugin Tipsquery, sort70
Tags
wordpressthemewoocommerceplugintwitterthemesfacebooksocial mediabusinesspintereste-commercesocialmagazinesecuritygooglemobilereal estatevideoresponsivepluginsbackupspamweddingsearchamazonrssYouTubeshopappportfolioecommerceeventtravelcontentchurchaffiliaterestaurantcarpostsauthormaintenancereviewmusicanalyticsfitness
Search
Categories
  • Advertising (4)
  • Affiliate Marketing (2)
  • Anti-Spam (5)
  • Backup & Disaster Recovery (11)
  • BuddyPress (1)
  • Cloning with WordPress (7)
  • Community (1)
  • Content Promotion (1)
  • Facebook (12)
  • Foursquare (2)
  • General Tips (29)
  • Google Plus (13)
  • Hack prevention (4)
  • Handling Errors (2)
  • Maintenance Plugins (2)
  • Mobile (1)
  • Mobile WordPress Tips (12)
  • Plugin Tips (639)
  • RSS Plugins (1)
  • SEO Plugins (4)
  • Site Structure (1)
  • Social Media (67)
  • Speed Optimization (2)
  • Stats & Analytics (5)
  • Theme How-Tos (411)
  • Twitter Integration (11)
  • Uncategorized (25)
  • WordPress E-Commerce (16)
  • WordPress for Business (42)
  • WordPress Security (10)
Categories
Plugin TipsTheme How-TosSocial MediaWordPress for BusinessGeneral TipsUncategorizedWordPress E-CommerceGoogle PlusMobile WordPress TipsFacebookBackup & Disaster RecoveryTwitter IntegrationWordPress SecurityCloning with WordPressAnti-SpamStats & AnalyticsHack preventionAdvertisingSEO PluginsMaintenance PluginsHandling ErrorsAffiliate MarketingSpeed OptimizationFoursquareSite StructureMobileCommunityRSS PluginsContent PromotionBuddyPress
Footer Sidebar 2

Drop a widget on "Footer Sidebar 2" sidebar at Appearance > Widgets page.

Footer Sidebar 3

Drop a widget on "Footer Sidebar 3" sidebar at Appearance > Widgets page.

February 2021
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
« Nov    
2015 © Practical WP