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 slider_shortcode($atts){ | |
extract(shortcode_atts(array( | |
'count' => '5' | |
), $atts)); | |
$q = new WP_Query(array('post_type' => 'slider-items', 'posts_per_page' => '3', 'orderby' => 'menu_order', 'order' => 'ASC')); | |
$list = '<div id="home-slider" class="carousel slide carousel-fade" data-ride="carousel"><div class="carousel-inner">'; | |
$i = 0; | |
while($q->have_posts()) : $q->the_post(); |
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 wpb_find_shortcode($atts, $content=null) { | |
ob_start(); | |
extract( shortcode_atts( array( | |
'find' => '', | |
), $atts ) ); | |
$string = $atts['find']; | |
$args = array( | |
's' => $string, |
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
add_shortcode('shortcodetag', '__return_false'); |
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( | |
'status' => 'approve' //Change this to the type of comments to be displayed | |
)); | |
$args = array( | |
'walker' => null, | |
'max_depth' => '', |
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
<section id="team"> | |
<div class="container"> | |
<div class="row"> | |
<h1 class="title text-center wow fadeInDown" data-wow-duration="500ms" data-wow-delay="300ms">Meet the Team</h1> | |
<p class="text-center wow fadeInDown" data-wow-duration="400ms" data-wow-delay="400ms">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <br> | |
Ut enim ad minim veniam, quis nostrud </p> | |
<div id="team-carousel" class="carousel slide wow fadeIn" data-ride="carousel" data-wow-duration="400ms" data-wow-delay="400ms"> | |
<!-- Wrapper for slides --> | |
<div class="carousel-inner"> |
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
//Add this code to functions.php | |
// Breadcrumbs | |
function custom_breadcrumbs() { | |
// Settings | |
$separator = '/'; | |
$breadcrums_id = 'breadcrumbs'; | |
$breadcrums_class = 'breadcrumbs'; | |
$home_title = 'Home'; |
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
//Backend visual composer add-on code | |
vc_map(array( | |
'name' => 'Accordions', | |
'base' => 'maxima_accordion', | |
'category' => 'Maxima', | |
'params' => array( | |
array( | |
'type' => 'textfield', | |
'name' => __('Title', 'rrf-maxima'), |
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 industry_rrfonline_options( $options ) { | |
$options = array(); | |
$options[] = array( | |
"id" => "industry_rrfonline_slide_meta", | |
"post_type" => "industry-slide", | |
'title' => 'Slide Options', | |
'context' => 'normal', |
OlderNewer