WordPress Query Args Reference (Cheat Sheet)
Composed by: EkoJR
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
Code Name | |
af Afrikaans | |
af-ZA Afrikaans (South Africa) | |
ar Arabic | |
ar-AE Arabic (U.A.E.) | |
ar-BH Arabic (Bahrain) | |
ar-DZ Arabic (Algeria) | |
ar-EG Arabic (Egypt) | |
ar-IQ Arabic (Iraq) | |
ar-JO Arabic (Jordan) |
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
// https://codepen.io/cmykw/pen/gemxJm | |
// layout | |
<nav/> | |
// style | |
<style> | |
body { min-height: 200vh; } | |
nav { |
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. |
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 | |
// based on, fixed warnings http://www.designtoday.info/removing-li-menu-from-wordpress/ | |
class Description_Walker extends Walker_Nav_Menu { | |
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { | |
$classes = empty($item->classes) ? array () : (array) $item->classes; | |
$class_names = join(' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); | |
!empty ( $class_names ) and $class_names = ' class="'. esc_attr( $class_names ) . '"'; | |
$output .= ""; | |
$attributes = ''; |
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
# app/javascript/packs/application.coffee | |
import 'selectize/dist/css/selectize.default' | |
import 'ladda/dist/ladda-themeless.min' | |
import 'jquery' | |
import 'foundation-sites' | |
import * as Ladda from 'ladda' | |
import '../src/js/init' | |
import '../src/js/app.draggable_images' |
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
![Иллюстрация к проекту](https://github.com/jon/coolproject/raw/master/image/image.png) | |
![Image alt](https://github.com/{username}/{repository}/raw/{branch}/{path}/image.png) | |
{username} — ваш ник на ГитХабе; | |
{repository} — репозиторий где хранятся картинки; | |
{branch} — ветка репозитория; | |
{path} — путь к месту нахождения картинки. |
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
for(let link of document.querySelectorAll('.block-black')){ | |
link.onclick = (e) =>{ | |
if(e.target === link.querySelector('.title')){ | |
link.classList.toggle('active'); | |
// link.parentElement.classList.toggle('active'); | |
} | |
} | |
} |
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
$('.check').click(function(){ | |
this.value = (this.value)?'':this.dataset.check; | |
}); | |
$( document ).ready(function() { | |
$('input[type="checkbox"]').click(function() { | |
if ($(this).val() === '') { | |
$(this).val($(this).data("check")); | |
} else { |
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
rest_api_init add input | |
/wp-json/wp/v2/blog/33393?&_embed | |
/**** getPostViews ****/ |
NewerOlder