Skip to content

Instantly share code, notes, and snippets.

[
{
"title": "The Inner Game of Tennis",
"key": "/works/OL2619508W",
"author_keys": [
"/authors/OL381607A",
"/authors/OL7697182A",
"/authors/OL9109289A"
],
"author_names": [
{
"now":"employed_and_freelance",
"future":"startup",
"eng1":5,
"eng2":5,
"eng3":3,
"eng4":5,
"eng5":5,
"eng6":5,
"eng7":5,
@razvanFrandes
razvanFrandes / multisite_functions.php
Created April 23, 2018 13:04 — forked from freekrai/multisite_functions.php
Some handy wordpress multisite functions
<?php
$posts = multisite_latest_post( array(
"how_many"=>10,
"how_long_days"=>30,
"how_many_words"=>50,
"more_text"=>"[...]",
"remove_html"=>true,
"sort_by"=>"post_date",
// if paginating:
"paginate"=>true,
@razvanFrandes
razvanFrandes / wp-query-ref.php
Created April 4, 2018 10:48 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/