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 | |
// Create the variable for the large image src link | |
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); | |
// Out the Post Title Using the post permalink for the post link - then the image which links to its large size | |
?> | |
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> |
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 // <~ don't add me in | |
add_action( 'restrict_manage_posts', 'filter_backend_by_taxonomies' , 99, 2); | |
/* Filter CPT via Custom Taxonomy */ | |
/* https://generatewp.com/filtering-posts-by-taxonomies-in-the-dashboard/ */ | |
function filter_backend_by_taxonomies( $post_type, $which ) { | |
// Apply this to a specific CPT | |
if ( 'light' !== $post_type ) |
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 // <~ don't add me in | |
add_shortcode( 'all_the_single_dates', 'all_the_single_dates' ); | |
// Event Dates - display single date only for single dates & multi dates for multiple day events | |
function all_the_single_dates() { | |
// Get the start date and end date | |
// https://pastebin.com/ij0g9Tcf | |
// https://theeventscalendar.com/support/forums/topic/remove-end-date-if-same-as-start-date/#post-46651 | |
ob_start(); |
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 //<~ don't add me | |
add_shortcode( 'tl_related_lights', 'tl_related_lights_relationship' ); | |
// Add Relationship ACF field between Projects and Lights | |
function tl_related_lights_relationship() { | |
ob_start(); | |
$posts = get_field('tl_project_lights_link_used'); | |
if( $posts ): ?> |
This file has been truncated, but you can view the full file.
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
/usr/sbin/mysqld, Version: 5.7.21-0ubuntu0.16.04.1-log ((Ubuntu)). started with: | |
Tcp port: 3306 Unix socket: /var/run/mysqld/mysqld.sock | |
Time Id Command Argument | |
# Time: 2018-04-11T23:22:58.672420Z | |
# User@Host: vultr_cgp[vultr_cgp] @ localhost [] Id: 234324 | |
# Query_time: 0.152190 Lock_time: 0.031670 Rows_sent: 0 Rows_examined: 0 | |
use vultr_cgp; | |
SET timestamp=1523488978; | |
SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_jetpack_idc_allowed' LIMIT 1; | |
# Time: 2018-04-11T23:22:58.698142Z |
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
<ul class="list-buttons"> | |
<li class="active"> <a id="showall">Show All</a></li> | |
<li><a class="showSingle" target="1">Show Classes</a></li> | |
<li><a class="showSingle" target="2">Show Treatments</a></li> | |
</ul> | |
<!-- Rows --> | |
<div id="div1" class="primary-row">...</div> |
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
jQuery(document).ready(function($) { | |
// set a variable for the anchor link which is the location.hash | |
var anchorLink = $(window.location.hash); | |
// test to see if the link is a anchor link, if not the length will have no value, this is done to avoid js errors on non anchor links | |
if ( anchorLink.length ) { | |
// set an element as the fixed entity, header in this case and get its height | |
var offsetSize = $("header").innerHeight(); | |
// fire the animation from the top of the page to the anchor link offsetting by the fixed elements height, the number is the speed of the animation | |
$("html, body").animate({scrollTop: anchorLink.offset().top - offsetSize }, 500); |
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 | |
/** | |
* WC_Product_Cat_List_Walker class | |
* | |
* @extends Walker | |
* @class WC_Product_Cat_Dropdown_Walker | |
* @version 2.3.0 | |
* @package WooCommerce/Classes/Walkers | |
* @author WooThemes | |
*/ |
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 //<~ don't add me in | |
add_shortcode( 'tl_related_lights', 'tl_related_lights_relationship' ); // Add your shortcode here | |
// Add Relationship field between same CPT | |
function tl_related_lights_relationship() { | |
ob_start(); | |
$posts = get_field('relationship_field_name'); // Add your ACF field in here |