POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
http://mixmeals.com/wp-json/wp/v2/posts/?include=470,469
| /* | |
| ** Paste in functions.php | |
| ** Remove "Products" from Yoast SEO breadcrumbs in WooCommerce | |
| */ | |
| add_filter( 'wpseo_breadcrumb_links', function( $links ) { | |
| // Check if we're on a WooCommerce page | |
| // Checks if key 'ptarchive' is set | |
| // Checks if 'product' is the value of the key 'ptarchive', in position 1 in the links array | |
| if ( is_woocommerce() && isset( $links[1]['ptarchive'] ) && 'product' === $links[1]['ptarchive'] ) { |
POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
http://mixmeals.com/wp-json/wp/v2/posts/?include=470,469
| select { | |
| -webkit-appearance: none; /* Webkit */ | |
| -moz-appearance: none; /* FF */ | |
| -ms-appearance: none; /* Edge */ | |
| appearance: none; /* Future */ | |
| /* Optional styles */ | |
| padding: 0.3em 1.5em 0.3em 0.6em; | |
| border: 1px solid currentColor; | |
| background: white; |
| function isOnScreen(elem) { | |
| // if the element doesn't exist, abort | |
| if( elem.length == 0 ) { | |
| return; | |
| } | |
| var $window = jQuery(window) | |
| var viewport_top = $window.scrollTop() | |
| var viewport_height = $window.height() | |
| var viewport_bottom = viewport_top + viewport_height | |
| var $elem = jQuery(elem) |