This file contains 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
<a href="javascript:(function(){var v="1.3.2";if(window.jQuery===undefined||window.jQuery.fn.jquery<v){var done=false;var script=document.createElement("script");script.src="http://ajax.googleapis.com/ajax/libs/jquery/"+v+"/jquery.min.js";script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;initMyBookmarklet();}};document.getElementsByTagName("head")[0].appendChild(script);}else{initMyBookmarklet();}function initMyBookmarklet(){(window.myBookmarklet=function(){jQuery(".nextProda").live("click",function(){if(typeof(localStorage)=='undefined'){alert('Ваш браузер не поддерживает localStorage()');}else{jQuery(document).scrollTop(localStorage.getItem('scroll'+encodeURIComponent(window.location.pathname)));}return false;});jQuery("body").append('<a href="#" class="nextProda" style="back |
This file contains 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
/* | |
don't forget to flush permalinks | |
/cpt-label/category/slug/ | |
*/ | |
function os_part_tags() { | |
add_rewrite_rule("^cpt-label/([^/]+)/page/([^/]+)/?",'index.php?post_type=cpt-label&cat=$matches[1]&paged=$matches[2]','top'); | |
add_rewrite_rule("^cpt-label/([^/]+)/([^/]+)/?",'index.php?cpt-label=$matches[2]','top'); | |
add_rewrite_rule("^cpt-label/?",'index.php?post_type=cpt-label','top'); | |
} |
This file contains 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 | |
if (have_posts()) : | |
while (have_posts()) : the_post(); ?> | |
$expirationtime = get_post_custom_values('expiration'); | |
if (is_array($expirationtime)) { | |
$expirestring = implode($expirationtime); | |
} | |
$secondsbetween = strtotime($expirestring)-time(); | |
This file contains 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
$args = array( | |
'author_email' => '', | |
'ID' => '', | |
'karma' => '', | |
'number' => '', | |
'offset' => '', | |
'orderby' => '', | |
'order' => 'DESC', | |
'parent' => '', | |
'post_ID' => '', |
This file contains 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
$args = array( | |
'author_email' => '', | |
'ID' => '', | |
'karma' => '', | |
'number' => '', | |
'offset' => '', | |
'orderby' => '', | |
'order' => 'DESC', | |
'parent' => '', | |
'post_ID' => '', |
This file contains 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( | |
//////Author Parameters - Show posts associated with certain author. |
NewerOlder