Skip to content

Instantly share code, notes, and snippets.

View DoubleMarv's full-sized avatar

Barry Marv DoubleMarv

View GitHub Profile
@DoubleMarv
DoubleMarv / WP next-previous related links
Created February 21, 2020 05:23
WP next-previous related links
.site-title {
display: block;
align-items: center;
justify-content: center;
align-content: center;
text-align: center;
font-weight: normal;
width: 100%;
text-align: center;
background: linear-gradient(-45deg, #ff7055 25%, #2c3b4b 25%, #2c3b4b 50%, #ff7055 50%, #ff7055 75%, #2c3b4b 75%, #2c3b4b);
<style> .reviews-section{background: #f7f6f6;}.reviewcard{} .reviewcard .reviewtext{font-size: .85em; } .reviewcard .reviewauthor{border-top: 1px solid #d8c9d8; padding-top: 1em; margin-top: 1em; } .reviewcard .reviewauthor .authortitle{font-size: 1.1em; font-weight: 600; width: 100%; } .reviewcard .reviewauthor .authortitle a{font-size: .85em; font-weight: 300; color: #d8c9d8; float: right; } .stars span{color: #ffc633; font-size: 1.5em; } </style>
<!-- ////////reviews////////// -->
<section class="reviews-section doublemarvellous">
<div class="container">
<div id="reviews" class="columns is-marginless is-multiline"></div>
<!-- /////////we're hiding this map///////// -->
.navbar-menu{
font-family: $monto;
z-index: 9;
position: relative;
#menu-specializedtopstrip {
width: 100%;
display: inline-flex;
height: 100%;
li{
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<meta name="author" content="">
@DoubleMarv
DoubleMarv / gist:934fb2c37e8eae32cd12955cd1d29227
Created July 12, 2018 15:52
Display list of tags for a custom post type | WP php
<?php
$terms = get_terms( array(
'post_type' => 'teegallery',
'taxonomy' => 'post_tag'
));
foreach($terms as $term) {
echo '<p>'.$term->name.'</p>';
}
?>
@DoubleMarv
DoubleMarv / gist:37b624f4378fe19b072cdd4dc5263766
Created April 18, 2018 16:20
Simply output something Vuejs and truncate it 10 characters with a filter
....
methods: {
fetchData: function () {
var self = this;
$.get( apiURL, function( data ) {
self.items = data.items;
});
}
},
@DoubleMarv
DoubleMarv / gist:c44368c3063c048c384d4c12f1effe57
Created April 9, 2018 13:32
vuejs - search rest api by checkbox filtering custom post types by category IDs
<section id="selectcategories">
<div class="container">
<!-- ////////////////// -->
<div class="columns">
<div class="column">
<!-- 5// bed wetting 6//mental healt => id os terms for custom post category -->
<input type="checkbox" id="1" value="5" v-model="checksearch"> Bed Wetting
<input type="checkbox" id="2" value="6" v-model="checksearch"> Mental Health
<input type="checkbox" id="3" value="0" v-model="checksearch"> Autism
@DoubleMarv
DoubleMarv / gist:324bd7255b8200d17a249080cb42a7a3
Created March 26, 2018 10:22
Vue Search Titles (v-for loop) with v-model text input
<section id="app">
<!-- ////////////////// -->
<div class="field">
<label class="label">Search</label>
<div class="control">
<input class="input" type="text" placeholder="Text input" v-model="searchQuery" value="Autism">
</div>
<p class="help">This is a help text</p>
</div>
<!-- ////////////////// -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">