Tag: WP_Query
WP_Query::get_posts()
Every call to retrieve posts goes through WP_Query, and the bulk of the logic is in the method get_posts. Here’s some potentially useful information about the current state of what is arguably the most important function in WordPress. WP_Query::get_posts is 890 lines long, and has a cyclomatic complexity of 256. A good cyclomatic complexity is ~2-6, […]
Alternative Post Loops
We all know the standard post loop in every template, but what if we did something slightly different? Lets begin with the standard main loop we all know: View the code on Gist. There’s a lot of boilerplate there, what if we could reduce it down? Lets try using a feature of PHP 5 called […]
Getting From URL to Template
So you load a page on a WordPress site. How did it know to load the page template? How did it know it was a page and not a category listing? Is it hardcoded somewhere? To begin with lets list out what happens, then we’ll explain each step in basic terms: .htaccess rules pass the URL […]
Tags
- __call
- 3.5
- acquisitions
- actions
- add_action
- admin
- admin bar
- AJAX
- analogies
- anxiety
- Apple
- attachments
- audio
- auditor
- automation
- Automattic
- bash
- Bitcraze
- bread
- bugs
- bulk entry
- business cards
- categories
- category
- child theme
- Classes
- cli
- Code Architecture
- code for the people
- colours
- composer
- considered harmful
- constructors
- crazyflie
- CSS
- culture
- database
- decompression bombs
- design
- Development
- Diagrams
- doctrine
- downloads
- editor
- editor styles
- electronics
- employment
- endpoints
- escaping
- events
- export
- filters
- Flow Charts
- fonts
- food
- frameworks
- freelance
- future
- galleries
- generators
- gists
- git
- gitbook
- github
- google docs
- GPL
- grid systems
- gutenberg
- hacking
- html
- html5
- http
- http2
- humour
- hygiene
- images
- import
- importer
- iOS
- iOS6
- iterators
- javascript
- jetpack
- keys
- kim jones
- LEAF on Bold St
- LESS
- levenshtein distance
- licensing
- local indicator
- maintenance
- markdown
- metaprogramming
- Mobile Safari
- mysql
- nav menus
- new
- nginx
- notifications
- NPath complexity
- Object Oriented Code
- oembed
- page templates
- people
- performance
- PHP
- PHP 4
- PHP 5.5
- PHP References
- planning
- plugins
- post meta
- preprocessors
- Presentations
- provisioning
- psychology
- public service announcement
- pull requests
- qa tools
- quadcopter
- Quality Assurance
- query_vars
- Quickstart
- redirect_canonical
- regex
- related posts
- releases
- research
- rest api
- rewrite rules
- Root composition
- Ruby
- SASS
- Security
- SellWire
- servers
- shortcodes
- soldering
- sql
- SSH
- stack exchange
- Stars
- stress
- stupidity
- styles
- tags
- taxonomies
- taxonomy
- tea
- templates
- themes
- tinymce
- typekit
- uploads
- vagrant
- validation
- VIP
- virtual machines
- virtualbox
- vvv
- webfonts
- WordCamp
- wordcamp 2012
- WordPress
- WP API
- WP CLI
- WP_Query
- wpdb
- wxr
- yourwebsiteishorrible.com
By Month
- January 2019
July 2018
April 2018
March 2018
January 2018
August 2017
March 2017
February 2017
January 2017
December 2016
August 2016
July 2016
May 2016
September 2015
June 2015
May 2015
December 2014
November 2014
September 2014
June 2014
April 2014
March 2014
January 2014
November 2013
October 2013
August 2013
July 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012