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
<div class="bx-wrapper"> | |
<ul class="bxslider"> | |
<?php | |
$slider = new WP_Query(array( 'post_type' => 'homepage_slider' ) ); | |
if( $slider->have_posts() ) : | |
while($slider->have_posts()) : | |
$slider->the_post(); | |
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); ?> | |
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
<ol class="commentlist"> | |
<?php | |
//Gather comments for a specific page/post | |
$comments = get_comments(array( | |
'post_id' => XXX, | |
'status' => 'approve' //Change this to the type of comments to be displayed | |
)); | |
//Display the list of comments | |
wp_list_comments(array( |
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
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
</IfModule> |
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 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?> | |
<div class="featured-image" style="background-image: url('<?php echo $thumb['0'];?>')"> | |
</div> | |
<style> | |
.featured-image { | |
width:100%; | |
height:400px; |
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
// Visual Composer | |
// After VC Init | |
add_action( 'vc_after_init', 'vc_after_init_actions' ); | |
function vc_after_init_actions() { | |
// Remove VC Elements | |
if( function_exists('vc_remove_element') ){ | |
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 | |
/** | |
* The template for displaying all single posts. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post | |
* | |
* @package Mindspike | |
*/ | |
get_header(); ?> |
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 | |
// The Query | |
$the_query = new WP_Query( array( 'cat' => '3,4', 'posts_per_page' => 4 ) ); | |
// The Loop | |
if ( $the_query->have_posts() ) { | |
while ( $the_query->have_posts() ) { | |
$the_query->the_post(); | |
echo '<h4><a href="' . get_permalink($recent["ID"]) . '">' . get_the_title() . '</a></h4>'; |
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 | |
/* New Sidebar */ | |
function new_sidebar_widget_init() { | |
register_sidebar( array( | |
'name' => 'New Sidebar', | |
'id' => 'new_sidebar', | |
'before_widget' => '', | |
'after_widget' => '', | |
'before_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 echo do_shortcode("[shortcode]"); ?> |
OlderNewer