Skip to content

Instantly share code, notes, and snippets.

@patilswapnilv
patilswapnilv / functions.php
Created June 22, 2018 19:27 — forked from jaredatch/functions.php
WordPress Search Autocomplete using WP REST API v2
<?php
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
*/
function ja_global_enqueues() {
wp_enqueue_style(
'jquery-auto-complete',
@patilswapnilv
patilswapnilv / package.json
Created June 22, 2018 19:27 — forked from igorbenic/package.json
Powering the WordPress Search with React and REST API | https://www.ibenic.com/wordpress-react-search
{
"name": "wordpress-search-react",
"version": "1.0.0",
"description": "Powering WordPress Search with React and REST API",
"main": "assets/js/public.js",
"scripts": {
"build": "webpack",
"watch": "webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
// 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
*/
@patilswapnilv
patilswapnilv / function.php
Created January 31, 2018 13:56
Call a navigation menu using a shortcode
function print_menu_shortcode($atts, $content = null) {
extract(shortcode_atts(array( 'name' => null, ), $atts));
return wp_nav_menu( array( 'menu' => $name, 'echo' => false ) );
}
add_shortcode('menu', 'print_menu_shortcode');
Coding:
http://jobs.readwriteweb.com/ # supports RSS to get jobs
http://angel.co/jobs # supports APIs to get jobs
http://startuply.com/ # supports RSS to get jobs
http://jobs.37signals.com/ # supports RSS to get jobs
http://www.dice.com/ # supports RSS and JSON to search for jobs
http://jobs.github.com/ # supports RSS
http://www.craigslist.org # supports RSS and XML to post and read jobs
http://www.reddit.com/ # supports posting posts through bots, and reading RSS
http://news.ycombinator.com/jobs # supports RSS for reading jobs
class CustomRapidFireFilters {
function __construct()
{
add_filter( 'rapidfire_admin_options', array( &$this, 'custom_admin_options' ) );
add_filter( 'rapidfire_after_options', array( &$this, 'custom_after_options' ) );
add_filter( 'rapidfire_after_result', array( &$this, 'custom_after_result' ) );
}
function custom_admin_options( $options )
@patilswapnilv
patilswapnilv / functions.php
Created July 29, 2016 13:35 — forked from cliffordp/functions.php
The Events Calendar Get Events for 1 Year from Today in iCal Export File -- http://example.com/events/?ical=1&year-feed
<?php
// From https://gist.github.com/cliffordp/ab1f7c4d95723ee6f892/, a fork of https://gist.github.com/jesseeproductions/2b1af6527b7029eaea6e
// References:
// https://theeventscalendar.com/support/forums/topic/ical-only-pushing-1-month-at-a-time/
// https://theeventscalendar.com/support/forums/topic/how-users-can-subscribe-to-my-events-calendar-in-their-personal-calendars/#post-1022932
// https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/3777092-subscribe-to-calendar-via-ical
/*
* The Events Calendar Get Events for 1 Year from Today in iCal Export File
* add coding to child theme's functions.php
* Tested works with The Events Calendar v3.12 and v4.0
@patilswapnilv
patilswapnilv / Balkan Style - Portfolio Gallery.markdown
Created June 30, 2015 07:40
Balkan Style - Portfolio Gallery