This file contains hidden or 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
/* partially complete conditional logic functions, submitted to Gravity Forms for help, as once the new select element is switched to, it cannot be switched away from */ | |
function set_conditional( $form ) { | |
?> | |
<script type="text/javascript"> | |
gform.addFilter( 'gform_conditional_logic_fields', 'set_conditional_field' ); | |
function set_conditional_field( options, form, selectedFieldId ){ | |
options.push({ | |
label: 'User Role', | |
value: 'user-role' |
This file contains hidden or 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 allows the font size to adjust automatically as the browser width changes */ | |
font-size: calc(1.5vw + 0px); |
This file contains hidden or 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
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { | |
/* IE10+ specific styles go here */ | |
} |
This file contains hidden or 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 | |
$args = array( | |
'post_type' => 'post', | |
'category_name' => array(7), | |
'nopaging' => true, | |
'suppress_filters' => true, | |
'fields' => 'ids' | |
); | |
$posts = new WP_Query($args); |
This file contains hidden or 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: Gallery | |
*/ | |
get_header(); ?> | |
<section class="gallery-search"> | |
<div class="row"> |
This file contains hidden or 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 $this_term = $wp_query->get_queried_object(); ?> |
This file contains hidden or 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 change_role_name() { | |
global $wp_roles; | |
if ( ! isset( $wp_roles ) ) | |
$wp_roles = new WP_Roles(); | |
//You can list all currently available roles like this... | |
//$roles = $wp_roles->get_names(); | |
//print_r($roles); |