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 | |
/* | |
Template Name: Sunday Adult | |
*/ | |
get_header(); ?> | |
<div class="primary-content col-md-7 col-md-push-2"> | |
<main id="main" class="main" role="main"> |
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 | |
/* | |
Template Name: Sunday Adult | |
*/ | |
get_header(); ?> | |
<div class="primary-content col-md-7 col-md-push-2"> | |
<main id="main" class="main" role="main"> | |
<?php echo the_content(); ?> | |
<?php $repeater = get_field('sunday_adult'); |
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 sendFormByEmail(e) | |
{ | |
// Remember to replace XYZ with your own email address | |
var email = "XYz"; | |
// Optional but change the following variable | |
// to have a custom subject for Google Docs emails | |
var subject = "Calendar Submission Entry Email"; | |
// The variable e holds all the form values in an 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
// Add field type class to Gravity Forms fields | |
add_filter( 'gform_field_css_class', 'gf_field_type_classes', 10, 3 ); | |
function gf_field_type_classes( $classes, $field, $form ) { | |
$classes .= ' gfield_' . $field->type; | |
return $classes; | |
} |
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
# Created by https://www.gitignore.io/api/osx,codekit,bower,sass,wordpress,yeoman | |
### OSX ### | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon |
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 $category_detail=get_the_category(); | |
foreach($category_detail as $cd){ | |
echo $cd->slug; | |
} ?> |
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
<p><?php | |
$content = get_the_content(); | |
echo wp_trim_words( $content , '45' ); ?> | |
<a href="<?php the_permalink(); ?>"> Read More</a></p> |
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 | |
/* | |
Template Name: Post by Category | |
*/ | |
get_header(); ?> | |
<div id="container"> | |
<div id="content" role="main"> | |
// store categories in varialble $cats | |
<?php $cats = get_categories(); | |
// loop |