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
<? | |
//assign variables | |
$start_hour_field = get_field_object('start_hour'); | |
$starthour = $start_hour_field['value']; | |
$start_min_field = get_field_object('start_min'); | |
$startmin = $start_min_field['value']; | |
$end_hour_field = get_field_object('end_hour'); | |
$endhour = $end_hour_field['value']; | |
$end_min_field = get_field_object('end_min'); |
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
<? | |
//How to orderby using multiple meta values | |
$query = new WP_Query( | |
array( | |
'post_type' => 'sessions', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
'relation' => 'AND', | |
'hour_clause' => array( | |
'key' => 'start_hour', |
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
<center><a href="http://melissajrubin.com/"><img src="http://melissajrubin.com/wp-content/uploads/2016/09/compass_logo_150x150.png"></a></center> |
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
<strong>Miami, We're all Baseling</strong> | |
As Art Basel 2016 approaches, the event continues to expand to include more innovative shows in new venues. It is important to be strategic so you can cover everything that you would like to. I have highlighted the most visited shows in this email. Get lost, explore and just enjoy your time in Miami during this very creative and fun few days. | |
Have Fun! Happy Baseling! | |
<div> | |
<br class="clear" /><br class="clear" /> | |
<hr /> |
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
//edit custom field placeholder text in title box | |
function wpb_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'people' == $screen->post_type ) { | |
$title = 'Enter full name, first and last'; | |
} | |
return $title; | |
} |
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 | |
// args | |
$args = array( | |
'numberposts' => -1, | |
'post_type' => 'event', | |
'meta_key' => 'location', | |
'meta_value' => 'Melbourne' | |
); |
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^oldsite.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.oldsite.com [NC] | |
RewriteRule ^(.*)$ http://newsite.com/$1 [L,R=301,NC] |
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 | |
if (!session_id()) { | |
session_start(); | |
} | |
//read variables from the URL | |
function add_query_vars($aVars) { | |
$aVars[] = "type"; // represents the name of the affiliate | |
$aVars[] = "lawyer"; | |
$aVars[] = "city"; | |
return $aVars; |
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 nofollow tag to all category and tag links on posts*/ | |
add_filter( "term_links-post_tag", 'add_tag_class'); | |
function add_tag_class($links) { | |
return str_replace('" rel="tag">', '" rel="tag nofollow">', $links); | |
} | |
/* End nofollow tag edit */ | |
?> |
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
<!-- Loads Schema from Custom Field on Each Page or Post --> | |
<?php | |
$schema = get_post_meta(get_the_ID(), 'schema', true); | |
if(!empty($schema)) { | |
echo $schema; | |
} | |
?> | |
<!-- End Schema Code --> |
OlderNewer