POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
{ | |
"compiler": { | |
"version": "0.8.4+commit.c7e474f2" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", |
{ | |
"deploy": { | |
"VM:-": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"main:1": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, |
<?php | |
$terms = get_the_terms( $post->ID, 'product_cat' ); | |
if ( !empty( $terms ) ){ | |
// get the first term | |
$term = array_shift( $terms ); | |
$slugofpost = $term->slug; | |
} | |
?> | |
<style> |
POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
let people = new Object(); | |
// person constructor | |
function Person(city, bDate) { | |
this.city = city; | |
this.bDate = bDate; | |
} | |
// pushing person into people object | |
function createPerson(name, city, bDate) { |
"beautify.language": { | |
"html": [ | |
"blade", | |
"html" | |
] | |
}, |
// adding custom taxonomy filter to admin dashboard for city guide items | |
function pippin_add_taxonomy_filters() { | |
global $typenow; | |
// an array of all the taxonomyies you want to display. Use the taxonomy name or slug | |
$taxonomies = array('city_guide'); | |
// must set this to the post type you want the filter(s) displayed on | |
if( $typenow == 'the_city' ){ | |
<div class="container"> | |
<div class="row"> | |
<div class="col-12 bg-warning p-3 d-table h-100 w-100"> | |
<span class="display-4 h4 ml-2 text-uppercase text-dark font-weight-bolder d-table-cell align-middle"><?php single_cat_title( __( '', 'textdomain' ) ); ?></span> | |
<a href="{{ home_url('/kyiv_events') }}" | |
class="btn btn-outline-dark btn-sm d-table-cell align-middle"><i class="far fa-circle"></i> Browse All Events</a> | |
</div> | |
</div> | |
</div> |
"emmet.triggerExpansionOnTab": true, | |
"emmet.includeLanguages": { | |
"javascript": "javascript", | |
"vue-html": "html", | |
"php": "html", | |
"blade": "html", | |
} |