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 $counter = 0; if(get_sub_field('timeline')): ?><?php while(has_sub_field('timeline')): ?> | |
<?php if ($counter % 2 === 0) :?> | |
<?php else: ?> | |
<?php endif; ?> | |
<?php $counter++; endwhile; ?><?php endif; ?> |
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
.swiper-button-prev{ | |
&:after{ | |
font-family: "Font Awesome 5 Pro"; | |
content:'\f060'; | |
font-weight:100; | |
color:$alpha; | |
} | |
} | |
.swiper-button-next{ | |
&:after{ |
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 if ( wp_is_mobile() ) : ?> | |
/* Display and echo mobile specific stuff here */ | |
<?php else : ?> | |
/* Display and echo desktop stuff here */ | |
<?php endif; ?> |
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 $counter = 0; if(get_sub_field('timeline')): ?> | |
<?php while(has_sub_field('timeline')): ?> | |
<?php if ($counter % 2 === 0) :?> | |
<?php else: ?> | |
<?php endif; ?> |
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 if(get_sub_field('select_banner_image_or_video') == 'Banner Image') { ?> | |
<?php } else { ?> | |
<?php } ?> | |
<?php if(get_sub_field('') == '') { ?> | |
<?php } else if(get_sub_field('') == '') { ?> |
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
style="background-image:url('<?php $image = get_sub_field('image'); $size = 'full'; if( $image ) { echo wp_get_attachment_image_url( $image, $size ); } ?>');" | |
style="background-image: linear-gradient(269.77deg, rgba(0, 0, 0, 0.2) 2.1%, rgba(0, 0, 0, 0.6) 100%), url(<?php $image = get_sub_field('background_image'); $size = 'full'; if( $image ) { echo wp_get_attachment_image_url( $image, $size ); } ?>);" | |
/* Background Images CSS */ | |
background-image:url(images/image.jpg); | |
background-repeat: no-repeat; | |
background-size:cover; | |
background-position:center; |
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
/* Custom shortcode button function */ | |
add_shortcode( 'action-button', 'action_button_shortcode' ); | |
function action_button_shortcode( $atts ) { | |
extract( shortcode_atts( | |
array( | |
'title' => 'Title', | |
'url' => '' | |
), | |
$atts | |
)); |
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 my_custom_post_projects() { | |
$labels = array( | |
'name' => _x( 'Projects', 'post type general name' ), | |
'singular_name' => _x( 'Project', 'post type singular name' ), | |
'add_new' => _x( 'Add New', 'Project' ), | |
'add_new_item' => __( 'Add New Project' ), | |
'edit_item' => __( 'Edit Project' ), | |
'new_item' => __( 'New Project' ), | |
'all_items' => __( 'All Projects' ), | |
'view_item' => __( 'View Project' ), |
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
/news/%postname%/ | |
This puts /news in front of any '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
WORDPRESS DO SHORTCODE | |
<?php echo do_shortcode("[shortcode]"); ?> | |
SHORTCODE FROM ACF FIELD | |
<?php echo do_shortcode(get_field('social_stream_shortcode')); ?> | |
GFORMS | |
<?php echo do_shortcode("[gravityform id='1' title='false' description='false' ajax='true']"); ?> | |
[gravityform id="1" title="false" description="false" ajax="true"] |
NewerOlder