Skip to content

Instantly share code, notes, and snippets.

@wpsmith
wpsmith / category.php
Last active February 24, 2019 17:13 — forked from billerickson/template-gallery.php
Custom Genesis Category Template with Pagination
<?php
/**
* Custom Category Template
*
* @package my_child_theme
* @since 1.0.0
* @author Travis Smith <[email protected]>
* @copyright Copyright (c) 2013, Travis Smith
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @link https://gist.github.com/wpsmith/5062834
@norcross
norcross / admin-user-search.php
Created February 19, 2013 20:12
add first name, last name, and email to back-end WP user search
<?php
add_action ( 'pre_user_query', 'rkv_user_search' );
function rkv_user_search($wp_user_query) {
if(false === strpos($wp_user_query->query_where, '@') && !empty($_GET["s"])) {
global $wpdb;
$uids = array();
@chuckreynolds
chuckreynolds / robots.txt
Last active November 26, 2024 07:42
Solid start Robots.txt for WordPress Sites. (HEADS UP: Make sure you're viewing the most recent version of this Gist) https://gist.github.com/chuckreynolds/135728/
# robots.txt for wordpress
# https://gist.github.com/chuckreynolds/135728
User-agent: *
Disallow: /*.php$
Disallow: /cgi-bin/
Disallow: /comment-page-*
Disallow: /?s=*
Disallow: /search/*
Disallow: /trackback/