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 the_slug($post = 0) { | |
echo apply_filters('the_slug', get_the_slug($post)); | |
} | |
function get_the_slug($post = 0) { | |
$post = get_post($post); | |
return apply_filters('get_the_slug', $post->post_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
function the_featured_image_url($post = 0, $size = 'full') { | |
echo apply_filters('the_featured_image_url', get_featured_image_url($post, $size)); | |
} | |
function get_featured_image_url($post = 0, $size = 'full') { | |
$post = get_post($post); | |
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), $size); | |
return apply_filters('get_featured_image_url', $thumbnail[0]); | |
} |
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 fo_alter_link_query_arg($query){ | |
$query['post_status'] = array('inherit', 'publish'); | |
return $query; | |
} | |
function fo_alter_link_query($results){ | |
if(empty($results)) | |
return $results; | |
foreach ($results as $id => $p) { | |
$post = get_post($p['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
.container { width: 1436px; margin: auto; position: relative; } | |
.row > [class*="grid"]:last-child, .last { margin-right: 0; } | |
.grid1, .grid2, .grid3, .grid4, .grid5, .grid6, .grid7, .grid8, .grid9, .grid10, .grid11, .grid12 { float: left; margin-right: 40px; } | |
.grid1 { width: 83px; } | |
.grid2 { width: 206px; } | |
.grid3 { width: 329px; } | |
.grid4 { width: 452px; } | |
.grid5 { width: 575px; } | |
.grid6 { width: 698px; } | |
.grid7 { width: 821px; } |