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 | |
function do_custom_pt_query( $args = array() ){ | |
global $post; | |
$def_args = array('post_type' => 'on_air_programs', | |
'numberposts' => -1, | |
'posts_per_page' => -1, |
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 | |
// Default arguments | |
$args = array( | |
'base' => '%_%', | |
'format' => '?page=%#%', | |
'total' => 1, | |
'current' => 0, | |
'show_all' => False, | |
'end_size' => 1, |
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
<script type="text/javascript"> | |
//<![CDATA[ | |
function createCookie(name,value,days) { | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
var expires = "; expires="+date.toGMTString(); | |
} | |
else var expires = ""; |
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 (have_posts()) : ?> | |
<?php | |
// declare counter variable and assign it a value of 0 | |
$count = 0; | |
?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php if ($count % 4 == 3) { echo '<div class="post className">'; } else { echo '<div class="post>'; } ?> | |
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<div class="entry"> |
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 | |
// Use this to retrieve the URL of the featured post thumbnail. | |
// You can change the 'thumbnail' part to any wordpress image size (eg full, medium, thumbnail, etc.). | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); | |
echo $thumb_url[0]; | |
?> |
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 | |
/* | |
---------------------------------------------------------------------------------------------------------- | |
On themes that already have built in support, all you have to do is add <!--nextpage--> via the html | |
editor on WordPress where you want to add a new page to your post. If your theme doesn't have | |
intrisic support already built in for this then you can add it with one line: | |
<?php wp_link_pages(); ?> | |
References: |
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 | |
/* Add a custom field to the field editor (See editor screenshot) */ | |
add_action("gform_field_standard_settings", "my_standard_settings", 10, 2); | |
function my_standard_settings($position, $form_id){ | |
// Create settings on position 25 (right after Field Label) | |
if($position == 25){ | |
?> | |
<li class="admin_label_setting field_setting" style="display: list-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
.soliloquy-container { | |
.soliloquy { | |
ul.soliloquy-slides { | |
li.soliloquy-item { | |
img.soliloquy-item-image { | |
// make sure the image fills the width of the container |
OlderNewer