Skip to content

Instantly share code, notes, and snippets.

@Shoora
Shoora / A nice contact form
Last active February 28, 2019 03:17 — forked from corsonr/A nice contact form
A nice contact form
<?php
/*
|--------------------------------------------------------------------------
| Form Process
|--------------------------------------------------------------------------
*/
if(isset($_POST['submitted'])) {
if(trim($_POST['contactName']) === '') {
$nameError = 'Please enter your name.';
@Shoora
Shoora / wordpress sitemap
Last active February 28, 2019 04:01 — forked from corsonr/wordpress sitemap
wordpress sitemap html page
<h3>Pages</h3>
<ul><?php wp_list_pages("title_li=" ); ?></ul>
<h3>Feeds</h3>
<ul>
<li><a title="Full content" href="feed:<?php bloginfo('rss2_url'); ?>">Main RSS</a></li>
<li><a title="Comment Feed" href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comment Feed</a></li>
</ul>
<h3>Categories</h3>
<ul><?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0&feed=RSS'); ?></ul>
<h3>All Blog Posts:</h3>
@Shoora
Shoora / gist:6384400
Last active February 28, 2019 03:41 — forked from daltonrooney/gist:3182528
wordpress dispay page parent
<?php $args = array(
'numberposts' => -1,
'offset' => 0,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'custom_post_type_here',
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => 'custom_field_key_name',
@Shoora
Shoora / newinstall.php
Last active February 28, 2019 03:51 — forked from ocean90/newinstall.php
Place the file into WordPress root folder and open the file in your browser
<?php
/* Place the file into WordPress root folder and open the file in your browser. */
/* Settings */
define( 'BLOG_TITLE', 'WordPress Dev' );
define( 'USER_NAME', 'admin' );
define( 'USER_EMAIL', 'foobar@example.com' );
define( 'USER_PASSWORD', '123456' );
define( 'WP_SITEURL', 'http://wp.dev' );
@Shoora
Shoora / Continued List Ordering
Last active February 28, 2019 03:36 — forked from trumball/Continued List Ordering
Continued List Ordering
ol.chapters {
list-style: none;
margin-left: 0;
}
ol.chapters > li:before {
content: counter(chapter) ". ";
counter-increment: chapter;
font-weight: bold;
float: left;
@Shoora
Shoora / Submit-Animation.markdown
Created January 29, 2014 04:12
A Pen by Jonatan Pettersson.
@Shoora
Shoora / Loading-Spinner.markdown
Created January 29, 2014 04:13
A Pen by JustAnotherCoder.

Resize Fonts with jQuery

Tinkering away with some more jQuery. Still pretty new to me but I am finding it very fun and challenging so far. If there is something that could be better please feel free to share. Thanks.

Updated pen to include a selected state for the different sizing options.

A Pen by Ian Farb on CodePen.

License.

@Shoora
Shoora / AutoCacheQueries.js
Last active February 28, 2019 03:35 — forked from pseudosavant/AutoCacheQueries.js
AutoCacheQueries
// jQuery wrapper
var cacheQuery = function(query) {
this.cache = this.cache || {};
if (!this.cache[query]) {
this.cache[query] = jQuery(query);
}
return this.cache[query];
};