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
I AM A GIST!!!! | |
(thanks for the advice Asaf!!!!!) |
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
<nav class="pagination clearfix singleProjectPagination"> | |
<div class="paginationPreviousProject"><?php previous_post_link( '%link', __( 'Previous Project', 'theme-name' ) ); ?></div> | |
<?php if ( get_field('projects_page_link', 'options') ) : ?> | |
<div class="paginationAllProjects"> | |
<a href="<?php the_field('projects_page_link', 'options'); ?>"><?php _e('Back to Projects', 'theme-name'); ?></a> | |
</div> | |
<?php endif; ?> | |
<div class="paginationNextProject"><?php next_post_link( '%link', __( 'Next Project', 'theme-name' ) ); ?></div> | |
</nav><!-- .pagination --> |
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 | |
/** | |
* Controlling the class on an article in the WordPress loop | |
* Notes: | |
* | |
* <?php post_class(); ?> - this outputs the WordPress generated class for categories | |
* You can add classes by adding them inside this function. It will still output the WordPress 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
/* This will style the default page titles just like the category page titles */ | |
.page .entry-title { | |
font-size: 13px; | |
letter-spacing: 1px; | |
color: #ffffff; | |
background-color: #000000; | |
margin-bottom: 0px; | |
padding: 5px 0px; | |
text-align: 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
<?php | |
$images = get_field('hero_home_images'); | |
if( $images ): | |
shuffle($images); // randomizes the image array | |
$max = 1; // set the max here; | |
$count = 0; // current count | |
?> | |
<?php | |
foreach( $images as $image ): | |
$count++; // increment count |
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 // Reference: https://codex.wordpress.org/Conditional_Tags | |
// Use conditional PHP tags to ouput different content based on the template in use?> | |
<?php if ( is_page ) ) : // check if we are on a page ?> | |
<?php // code here for display on pages ?> | |
<?php else : // code below runs if we are NOT on a page ?> | |
<?php // code here displays on anything that is NOT a page ?> |
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 WooCommerce Template | |
* | |
* This is the template that displays all WooCommerce pages by default. | |
* | |
* @package THEMENAME | |
*/ | |
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
/** | |
* | |
* Register Line Sizes Taxonomy | |
* | |
**/ | |
function trends_line_sizes_taxonomy() { | |
$labels = array( | |
"name" => __( 'Line Sizes', 'trends'), |
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 $modalID = basename(get_permalink()); ?> | |
<div class="teamMember"> | |
<?php the_post_thumbnail('teamMember'); ?> | |
<h4><?php the_title(); ?></h4> | |
<a href="#<?php echo $modalID;?>"><?php _e('Read Bio', 'wp-theme-name'); ?></a> | |
<div class="remodal teamMemberBio" data-remodal-id="<?php echo $modalID;?>"> | |
<button data-remodal-action="close" class="remodal-close"></button> |
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: customer-completed-order.php | |
* | |
* Customize the email to include a member card. | |
* | |
* @link https://businessbloomer.com/woocommerce-check-product-id-order/ | |
* | |
*/ |
OlderNewer