Skip to content

Instantly share code, notes, and snippets.

Avatar

Kenny Eliason kennyeliason

View GitHub Profile
@kennyeliason
kennyeliason / makewpsuck.sh
Created Aug 21, 2020
Make WP Suck Less or More
View makewpsuck.sh
#!/bin/bash
# Make sites into bedrock or normal WordPress
# Version 1.0
# Copyright (c) NeONBRAND
set -a
source .env
set +a
View sublimesettings.json
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Roboto Mono",
"font_size": 13,
"ignored_packages":
[
],
"line_padding_bottom": 10,
"line_padding_top": 10,
@kennyeliason
kennyeliason / keybindings
Created Jun 27, 2018
sublime key bindings
View keybindings
[
{ "keys": ["command+shift+r"], "command": "reindent"},
{ "keys": ["ctrl+k", "ctrl+i"], "command": "title_case" }
]
@kennyeliason
kennyeliason / numeric-page-navi.php
Created Jun 22, 2018
Numeric Page Navigation for Roots Sage Theme
View numeric-page-navi.php
// Numeric Page Navi
function page_navi($before = '', $after = '')
{
global $wpdb, $wp_query;
$request = $wp_query->request;
$posts_per_page = intval(get_query_var('posts_per_page'));
$paged = intval(get_query_var('paged'));
$numposts = $wp_query->found_posts;
$max_page = $wp_query->max_num_pages;
if ($numposts <= $posts_per_page) {return;}