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 if( function_exists( 'wpseo_local_show_address' ) ) { wpseo_local_show_address( array( 'echo' => 'true' ) ); } ?> | |
<?php | |
// // Can be used in any (template) file, will do the same as shortcode [wpseo_address] | |
if( function_exists( 'wpseo_local_show_address' ) ) { | |
$params = array( | |
'echo' => true, | |
'id' => 237, | |
'show_state' => true, | |
'show_country' => true, |
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 require_if_theme_supports( 'super-seo', trailingslashit( TEMPLATEPATH ) . 'super-seo.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
.navbar .navbar-nav { | |
display: inline-block; | |
float: none; | |
vertical-align: top; | |
} | |
.navbar .navbar-collapse { | |
text-align: center; | |
} |
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
/* | |
Loop thru all Custom Post Types | |
foreach( get_post_types( array('public' => true) ) as $post_type ) { | |
if ( in_array( $post_type, array('post','page','attachment') ) ) | |
continue; | |
$pt = get_post_type_object( $post_type ); | |
echo '<div class="row sitemap-section"> <div class="col-sm-12">'; | |
echo '<h4>'.$pt->labels->name.'</h4>'; |
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
public static function get_country_array() { | |
$countries = array( | |
'AF' => __( 'Afghanistan', 'yoast-local-seo' ), | |
'AL' => __( 'Albania', 'yoast-local-seo' ), | |
'DZ' => __( 'Algeria', 'yoast-local-seo' ), | |
'AS' => __( 'American Samoa', 'yoast-local-seo' ), | |
'AD' => __( 'Andorra', 'yoast-local-seo' ), | |
'AO' => __( 'Angola', 'yoast-local-seo' ), | |
'AI' => __( 'Anguilla', 'yoast-local-seo' ), | |
'AQ' => __( 'Antarctica', 'yoast-local-seo' ), |
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
<a class="houzz-share-button" | |
data-url="http://www.yoursite.com/product/page/ " | |
data-hzid="Your HZID" | |
data-title="Product Title as it will be seen inside Houzz " | |
data-img="http://yoursite/path/to/product/image.jpg " | |
data-desc="Product description text " | |
data-category="Category keywords " | |
data-showcount="1 " | |
href="http://www.houzz.com">Houzz</a> | |
<script>(function(d,s,id){if(!d.getElementById(id)){var js=d.createElement(s);js.id=id;js.async=true;js.src="//platform.houzz.com/js/widgets.js?"+(new Date().getTime());var ss=d.getElementsByTagName(s)[0];ss.parentNode.insertBefore(js,ss);}})(document,"script","houzzwidget-js");</script> |
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 the_post_thumbnail('post-thumbnail',array('itemprop'=>'image')); ?> |
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
UPDATE wp_posts SET post_content = REPLACE(post_content, '“', '“'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, 'â€', '”'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '’', '’'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '‘', '‘'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '—', '–'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '–', '—'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '•', '-'); | |
UPDATE wp_posts SET post_content = REPLACE(post_content, '…', '…'); | |
UPDATE wp_comments SET comment_content = REPLACE(comment_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
SELECT ID, display_name FROM wp_users; | |
UPDATE wp_posts SET post_author=NEW_AUTHOR_ID WHERE post_author=OLD_AUTHOR_ID; |