This file contains 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
function pullquote( $atts, $content = null ) { | |
extract(shortcode_atts(array( | |
'float' => '$align', | |
), $atts)); | |
return '<blockquote class="pullquote ' . $float . '">' . $content . '</blockquote>'; | |
} | |
add_shortcode('pull', 'pullquote') | |
// You can now use the shortcode [pull]your quote here[/pull] in the editor when writing entries. |
This file contains 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
/** | |
* Setup the in-post related posts list | |
*/ | |
function wds_threatpost_related_posts() { | |
// Get tags, if they exist... | |
$tags = wp_get_post_tags( get_the_ID() ); | |
if ( $tags ) { | |
$tag_ids = array(); | |
foreach( $tags as $single_tag ) $tag_ids[] = $single_tag->term_id; |
This file contains 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
<form action="/" class="find-a-rental searchform unit-sub-body"> | |
<div class="form-row form-row-inline"> | |
<input type="text" class="s" name="find-a-rental-loc" id="find-a-rental-loc" placeholder="City, Zip or Neighborhood" /> | |
<input type="submit" class="btn searchsubmit" value="Search" /> | |
</div> | |
</form> |
This file contains 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
;(function($){ | |
var locOpts = {}, | |
$locAutocomplete = $('#location-autocomplete'); | |
if(typeof window.baseSvcUrl !== 'undefined') | |
locOpts.baseSvcUrl = window.baseSvcUrl; | |
if(typeof window.baseValidationUrl !== 'undefined') |
This file contains 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
;(function($){var locOpts={},$locAutocomplete=$("#location-autocomplete");if(typeof window.baseSvcUrl!=="undefined")locOpts.baseSvcUrl=window.baseSvcUrl;if(typeof window.baseValidationUrl!=="undefined")locOpts.baseValidationUrl=window.baseValidationUrl;if($locAutocomplete.length)$locAutocomplete.locationAutocomplete(locOpts);if(!Modernizr.input.placeholder)$("input[type=text]").each(function(){var $input=$(this),placeholder=$input.attr("placeholder");if(!placeholder)return true;$input.setVal=function(){if($input.is(":focus")){$input.removeClass("quiet"); | |
if($input.val()===placeholder){$input.val("");$input.trigger("focus")}}else if($input.val()==="")$input.val(placeholder).addClass("quiet");else $input.removeClass("quiet")};$input.setVal();$input.on("focus blur change",function(){$input.setVal()})});$(document).ready(function(){var blogLocOpts={urlPrepend:"http://www.realtor.com/realestateandhomes-search/",urlAppend:""};if(typeof window.baseSvcUrl!=="undefined")blogLocOpts.baseSvcUrl=window.baseSvcUrl;if(type |
This file contains 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 | |
add_action( 'widgets_init', 'realtor_register_widgets' ); | |
function realtor_register_widgets() { | |
register_widget( 'realtor_social_widget' ); | |
register_widget( 'realtor_ad_widget' ); | |
register_widget( 'realtor_buzz_widget' ); | |
register_widget( 'realtor_find_home_widget' ); | |
register_widget( 'realtor_find_rental_widget' ); | |
register_widget( 'realtor_ask_question_widget' ); | |
register_widget( 'realtor_featured_posts_widget' ); |
This file contains 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
UPDATE wp_posts | |
inner join wp_term_relationships rel on wp_posts.id=rel.object_id | |
inner join wp_term_taxonomy tax on rel.term_taxonomy_id=tax.term_taxonomy_id | |
inner join wp_terms term on tax.term_id=term.term_id | |
set wp_posts.post_type='your_post_type' | |
WHERE | |
term.slug="category_name" |
This file contains 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
UPDATE | |
wp_term_taxonomy tax | |
inner join wp_term_relationships rel on tax.term_taxonomy_id=rel.term_taxonomy_id | |
inner join wp_posts p on rel.object_id=p.id | |
inner join wp_terms term on tax.term_id=term.term_id | |
set tax.taxonomy='taxonomy-name' | |
WHERE | |
p.post_type = 'post' | |
AND | |
tax.taxonomy='category' |
This file contains 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
background: url(images/header-pale-blue.jpg) -webkit-gradient(linear, left bottom, right top, color-stop(0%, #a1a8b8), color-stop(24%, #ece4e1), color-stop(68%, #ece4e1), color-stop(100%, #7ba8c3)); | |
/* Chrome,Safari4+ */ |