npm v3.10 - ◾
npm install -g npm
# Downgrade to a specific version
npm install -g npm@2
/* Small Devices, Tablets */ | |
@media only screen and (max-width : 768px) { | |
.animated { | |
/*CSS transitions*/ | |
-o-transition-property: none !important; | |
-moz-transition-property: none !important; | |
-ms-transition-property: none !important; | |
-webkit-transition-property: none !important; | |
transition-property: none !important; | |
/*CSS transforms*/ |
npm install -g npm
# Downgrade to a specific version
npm install -g npm@2
/** | |
* This function allows you to retrieve the wp_get_attachment_image_src() | |
* data for any post's featured image on your network. If you are running | |
* a multisite network, you can supply another blog's ID to retrieve a post's | |
* featured image data from another site on your WordPress multisite network. | |
* | |
* Does not take care of icon business (at this time). | |
* | |
* If successful, this function returns an array of the following: | |
* [0] => url |
// Usage: | |
// get_id_by_slug('any-page-slug','any-post-type'); | |
function get_id_by_slug($page_slug, $slug_page_type = 'page') { | |
$find_page = get_page_by_path($page_slug, OBJECT, $slug_page_type); | |
if ($find_page) { | |
return $find_page->ID; | |
} else { | |
return null; | |
} |
<?php | |
/* ------------------------------------------------------------------*/ | |
/* PAGINATION */ | |
/* ------------------------------------------------------------------*/ | |
//paste this where the pagination must appear | |
global $wp_query; | |
$total = $wp_query->max_num_pages; | |
// only bother with the rest if we have more than 1 page! |
<?php | |
/* Register custom post types on the 'init' hook. */ | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 0.1.0 | |
* @access public |