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>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</strong> Nullam vehicula mi quis tristique venenatis. Aenean ultricies porta enim non dapibus. Nam id purus sed mauris interdum pellentesque. Nunc tincidunt, sem id <a href="#">placerat pharetra</a>, eros orci varius dui, non adipiscing dui orci ut elit. Nunc volutpat elit augue, ut imperdiet nibh volutpat sit amet. Ut vel magna lectus. Integer hendrerit sapien non leo aliquam, eget ultrices lectus ullamcorper. | |
Integer convallis justo sed rhoncus tempus. Mauris porttitor ultricies turpis, vitae vestibulum turpis rutrum porttitor. Praesent feugiat odio quis <em>ligula ullamcorper vestibulum.</em> Nam tristique feugiat ultrices. Integer fringilla venenatis rhoncus. Vestibulum rhoncus commodo rutrum. Cras volutpat sem et convallis interdum. Phasellus dictum lacinia posuere. Vivamus id cursus magna. Duis facilisis mi facilisis tellus tincidunt varius. In egestas ipsum at odio ullamcorper pharetra. |
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
li { | |
border-top: 1px solid rgba(255,255,255,0.1); | |
border-bottom: 1px solid rgba(0,0,0,0.2); | |
} | |
li:first-child { | |
border-top: none; | |
} | |
li:last-child { |
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
<h3 id="reply-title" class="comment-reply-title">Apply Now</h3> | |
<p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> Required fields are marked <span class="required">*</span></p> | |
<div id="two-col-contact"> | |
<div id="contact-message" class="contact-block"> | |
<p> | |
<label>Your Cover Letter</label> | |
[textarea your-message placeholder "Your Cover Letter"] | |
</p> | |
</div> |
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 | |
$day_check = ''; | |
while (have_posts()) : the_post(); | |
$day = get_the_date('j'); | |
if ($day != $day_check) { | |
if ($day_check != '') { | |
echo '</ul>'; // close the list here | |
} | |
echo get_the_date() . '<ul>'; | |
} |
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
<ul> | |
<?php foreach (get_terms( 'event-category' ) as $cat) : ?> | |
<li> | |
<img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> | |
<a href="<?php echo get_term_link($cat->slug, 'event-category' ); ?>"><?php echo $cat->cat_name; ?></a> | |
</li> | |
<?php endforeach; ?> | |
</ul> |
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
/* | |
Looks for js-link-popup marked links and makes them open in a popup | |
Optionally allows width and height to be specified in the data attibutes on the <a> | |
*/ | |
function processPopups(){ | |
$("a.js-link-popup").click(function(event){ | |
event.preventDefault(); | |
var link = $(this); | |
var width = parseInt(link.data("width"))||600; | |
var height = parseInt(link.data("height"))||600; |
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 my_widget_class($params) { | |
global $widget_num; | |
// Widget class | |
$class = array(); | |
$class[] = 'widget'; | |
// Iterated class | |
$widget_num++; | |
$class[] = 'widget-' . $widget_num; |
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 | |
error_reporting(0); // otherwise WordPress overwrites the ALERTS set by PHP.INI | |
@ini_set('display_errors', 0); // otherwise WordPress overwrites the ALERTS set by PHP.INI | |
define('DB_NAME', ''); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', ''); | |
define('DB_HOST', 'localhost'); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', ''); |
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` SET `post_type` = 'NEW_CPT_NAME' WHERE `post_type` = 'OLD_CPT_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' SET 'taxonomy' = 'NEW_TAX_NAME' WHERE 'taxonomy' = 'OLD_TAX_NAME'; |
OlderNewer