Skip to content

Instantly share code, notes, and snippets.

View robertdall's full-sized avatar

Robert Dall robertdall

View GitHub Profile
@luetkemj
luetkemj / wp-query-ref.php
Last active September 14, 2024 13:06
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
*/
@codebykat
codebykat / destroy-blue-lines.css
Last active December 22, 2015 23:39 — forked from max/gist:6472731
Hides "conversation view" on Twitter while still preserving the ability to click to expand conversation. This works for me on Chrome.
.conversation-module > li:after, .conversation-module > li:before {
display: none;
}
ol.conversation-module li.conversation-root,
ol.conversation-module li.conversation-ancestor {
display: none;
}
li.js-has-navigable-stream.open ol.conversation-module li.conversation-root,
<?php
add_filter( 'sharing_show', 'rdall_sharing_show' );
function rdall_sharing_show() {
if ( is_home() ) return true;
if ( is_archive() ) return false;
if ( is_search() ) return false;
return true;
}
@jeremyfelt
jeremyfelt / hide-inactive-jetpack-modules.php
Last active December 26, 2015 00:19
Hide inactive Jetpack modules
<?php
/*
Plugin Name: Hide Inactive Jetpack Modules
Plugin URI: https://gist.github.com/jeremyfelt/7062883
Description: Hides Jetpack modules that are marked as inactive, providing for a shorter list.
Version: 0.1
Author: Jeremy Felt
Author URI: http://jeremyfelt.com
License: GPL2
*/