This file contains hidden or 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
$('#digital_element').change(function() { | |
alert($(this).val()); | |
}); |
This file contains hidden or 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 | |
//Set the Visual Editor Width Relative to Your Themes Content Width | |
add_action( 'after_setup_theme', 'wptuts_theme_setup' ); | |
function wptuts_theme_setup() { | |
set_user_setting( 'dfw_width', 1000 );//In this example the full width will be 1000 pixels. | |
} | |
add_action( 'after_setup_theme', 'wptuts_theme_setup' ); | |
function wptuts_theme_setup() { |
This file contains hidden or 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
//*** Article from http://wp.tutsplus.com/tutorials/creative-coding/writing-custom-queries-in-wordpress/ | |
//The query function needs a string containing the custom query. The returnng value is an integer corresponding //to the number of rows affected/selected, and false when there is an error. | |
$query = "SELECT COUNT(apple) FROM fruits"; | |
$wpdb->query($query); | |
//This function gets multiple rows when executing a query. By default the result of the function is an array. | |
$query = " | |
SELECT * |
This file contains hidden or 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 | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
NewerOlder