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
function remove_scripts() { | |
wp_dequeue_script( 'script-name' ); | |
} | |
function remove_styles() { | |
wp_dequeue_style( 'style-name' ); | |
} | |
add_action( 'wp_print_scripts', 'remove_scripts' ); | |
add_action( 'wp_print_styles', 'remove_styles' ); |
Inspired by 24hoursofhappy.com
Forked from Alex Permyakov's Pen Audio Player.
Forked from Alex Permyakov's Pen Audio Player.
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($_POST) | |
{ | |
$to_email = "a.kazakov@computer-ufa.ru"; //Recipient email, Replace with own email here | |
$from_email = "noreply@YOUR-DOMAIN.com"; //From email address (eg: no-reply@YOUR-DOMAIN.com) | |
$subject = "subject"; | |
//Sanitize input data using PHP filter_var(). | |
$phone1 = filter_var($_POST["phone1"], FILTER_SANITIZE_STRING); | |
$phone2 = filter_var($_POST["phone2"], FILTER_SANITIZE_STRING); |
NewerOlder