Full Screen Search with Bootstrap
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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Isotope Filtering</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Place favicon.ico in the root directory --> | |
<link rel="stylesheet" href="css/font-awesome.css"> |
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
//Here is the code | |
<?php if ( $posts->have_posts() ) : //IF POST AVAILABLE | |
$count = 1; | |
$Number = 1; | |
while( $posts->have_posts() ) : $posts->the_post(); //WP CUSTOM QUERY | |
// GET POST SUPPORT DATA | |
$thumbnails = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full'); |
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
====================================== | |
if else WordPrss Page ID condition | |
====================================== | |
<?php if ( is_page('110') ) : ?> | |
//HTML CODE HERE... | |
<?php else : ?> | |
//HTML CODE HERE... |
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
================================================== | |
STANDARD RESPONSIVE MEDIA QUERY CSS | |
================================================== | |
/* XL Device :1200px. */ | |
@media (min-width: 1200px) and (max-width: 1500px) { | |
} | |
/* LG Device :992px. */ | |
@media (min-width: 992px) and (max-width: 1200px) { |
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 | |
READ_ME PLEASE | |
YOU CAN USE THE CODE DIRECT FUNCTION.PHP | |
/**================================== | |
* Enqueue scripts and styles way 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 | |
/** | |
*Function creates post duplicate as a draft and redirects then to the edit post screen | |
* | |
*/ | |
function rd_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'rd_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); |
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 | |
get_header(); | |
/* | |
Template Name: pagename | |
*/ | |
?> | |
<?php | |
$loop = new WP_Query( array( | |
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 NEW FEATURED IMAGES META BOXES | |
function listing_images_add_metabox () { | |
add_meta_box( 'listingimagediv', __( 'Home Slide Image', 'text-domain' ), 'listing_images_metabox', 'portfolio', 'side', 'low'); | |
} | |
add_action( 'add_meta_boxes', 'listing_images_add_metabox' ); | |
OlderNewer