Skip to content

Instantly share code, notes, and snippets.

View FutureMedia's full-sized avatar
💭
I may be slow to respond.

Lefteris Theodossiadis FutureMedia

💭
I may be slow to respond.
View GitHub Profile
@FutureMedia
FutureMedia / infinite-scroll-masonry-imagesloaded.php
Last active August 29, 2015 14:10 — forked from gregrickaby/infinite-scroll-masonry-imagesloaded.php
Portfoglio List with Mansory, Infinite Scroll & Images Loaded
/**
* Be sure to include library scripts in this order. Can be placed either
* in the header or footer.
*/
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.2/masonry.pkgd.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.min.js"></script>
@FutureMedia
FutureMedia / ajax-paging.js
Last active August 29, 2015 13:57
Load custom post type posts in a page via AJAX
jQuery(document).ready(function($){
$('#load-more button').click(function(e){
e.preventDefault(); // revent normal form submission
var postoffset = $('.item').length; // count props on page
$.post( WPaAjax.ajaxurl,
{
action : 'props_more',
@ideag
ideag / functions.php
Last active February 23, 2022 10:10
A very simple implementation of WordPress front-end login form. Just put this to your theme's functions.php file. Usage: use [tiny_login] shortcode or get_tiny_login_form()/the_tiny_login_form() template tags Arguments: one (optional) argument 'redirect': pass url where to redirect after successful login (default: false); Localization: replace '…
<?php
// a simple WordPress frontend login implementation
// written by Arūnas Liuiza | tinyStudio | wp.tribuna.lt
// Usage: use [tiny_login] shortcode or get_tiny_login_form()/the_tiny_login_form() template tags
// Arguments: one (optional) argument 'redirect': pass url where to redirect after successful login (default: false);
// Localization: replace 'theme' with your text domain string.
// login action hook - catches form submission and acts accordingly
add_action('init','tiny_login');
@luetkemj
luetkemj / wp-query-ref.php
Last active September 14, 2024 13:06
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/