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
/* Add CPTs to author archives */ | |
function custom_post_author_archive($query) { | |
if ($query->is_author) | |
$query->set( 'post_type', array('custom_type', 'post') ); | |
remove_action( 'pre_get_posts', 'custom_post_author_archive' ); | |
} | |
add_action('pre_get_posts', 'custom_post_author_archive'); |
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
<div class="portfolio-section"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div id="mixit_up_masonery_area" class="mixit_up_masonery_area"> | |
<div class="wrapper solve"> | |
<div class="ac_mixitup"> | |
<div class="portfolio"> | |
<div class="portfolio_filter"> | |
<ul> |
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
<div class="promo_area"> | |
<?php | |
global $post; | |
$args = array( 'posts_per_page' => 6, 'post_type'=> 'product', 'order' => 'DESC', 'product_cat' => 'promo', ); | |
$myposts = get_posts( $args ); | |
foreach( $myposts as $post ) : setup_postdata($post); ?> | |
<div class="col-md-4 col-sm-6 col-xs-12"> | |
<div class="promo_single"> | |
<div class="grid"> | |
<figure class="promo_offers"> |
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
<div class="parallax"></div |
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
//fb and tw for author | |
function my_new_contactmethods( $contactmethods ) { | |
// Add Twitter | |
$contactmethods['twitter'] = 'Twitter'; | |
//add Facebook | |
$contactmethods['facebook'] = 'Facebook'; | |
return $contactmethods; |
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
.slicknav_menu { | |
display: block; | |
position: absolute; | |
z-index: 10; | |
top: 0; | |
left: 0; | |
right: 0; | |
background: #fff; | |
} |
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
function new_excerpt_length($length) { | |
return 90; | |
} | |
add_filter('excerpt_length', 'new_excerpt_length'); |
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_value upload_max_filesize 64M | |
php_value post_max_size 64M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 |
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 echo get_the_date('M j, Y'); ?> |
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_value max_execution_time 300 |