- This is a complete item
- This is an incomplete item
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE a,b,c FROM wp_posts a WHERE a.post_type = 'revision' LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM wp_links WHERE link_url = 'http://codex.wordpress.org/'; | |
DELETE FROM wp_links WHERE link_url = 'http://wordpress.org/news/'; | |
DELETE FROM wp_links WHERE link_url = 'http://wordpress.org/support/'; | |
DELETE FROM wp_links WHERE link_url = 'http://wordpress.org/extend/plugins/'; | |
DELETE FROM wp_links WHERE link_url = 'http://wordpress.org/extend/themes/'; | |
DELETE FROM wp_links WHERE link_url = 'http://wordpress.org/support/forum/requests-and-feedback'; | |
DELETE FROM wp_links WHERE link_url = 'http://planet.wordpress.org/'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (class_exists('Jetpack')) { | |
Jetpack::dns_prefetch( array( | |
'//example.com', | |
) ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Practice Areas | |
$terms = get_the_terms( $post->ID, 'wplawyer-practice-area' ); | |
foreach($terms as $term) { | |
echo $term->name; | |
} | |
?> | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Attornys who practice Burn Injuries</h3> | |
<?php | |
$args = array( | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'wplawyer-practice-area', | |
'field' => 'slug', | |
'terms' => array( 'burn-injury' ) | |
), | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/listings/?property-types=PROPERTYTYPENAME&property-status=STATUSNAME&locations=LOCATIONNAME&features=FEATURENAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paulund View All Shortcodes | |
Plugin URI: http://www.paulund.co.uk | |
Description: View all the available shortcodes on your WordPress blog. This page will show you everything that is currently registered so you can use these in the text editor of WordPress | |
Version: 1 | |
Author: Paul Underwood | |
Author URI: http://www.paulund.co.uk | |
http://www.paulund.co.uk/get-list-of-all-available-shortcodes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
################################################################################ | |
// Featured Image for RSS FEEDS | |
################################################################################ | |
function clientname_post_thumbnail_rss($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = '' . get_the_post_thumbnail( $post->ID, 'rss-image', array( 'style' => 'float:left; margin-right:10px; height: 150px; width: 300px; border: 2px solid #e5e5e5' ) ) . '' . $content; | |
} | |
return $content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* Template Name: IDX Broker | |
* | |
* This template is for displaying the IDX info from | |
* IDXBroker.com in your Genesis child theme. | |
*/ | |
add_action( 'genesis_before_content', 'wsm_idx_open_tag' ); |