Skip to content

Instantly share code, notes, and snippets.

View niamrox's full-sized avatar

Niamul Hasan niamrox

View GitHub Profile

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
<meta name='language' content='ES'>
<meta name='robots' content='index,follow'>
@niamrox
niamrox / vc_map_multipmle_param_select_box.php
Last active July 14, 2017 14:24
Multiple Select Form Based on Dynamic Taxonomy Query
<?php
/*
Element Description: VC Info Box
*/
// Element Class
class ClientInfoBoxLoop extends WPBakeryShortCode
{
// Element Init
<?php
/**
* Get all type posts
*
* @return void
* @author alispx
**/
function alispx_get_type_posts_data( $post_type = 'post' ) {
@niamrox
niamrox / gist:102f2a2857b1b00aaf6c71ebbf47ce85
Created April 24, 2017 10:57 — forked from bueltge/gist:757903
This WordPress Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine
<?php
/*
Plugin Name: HowTo Plugin
Plugin URI:
Description: This Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine
Author: Heiko, Frank
Author URI: http://bueltge.de
Version: 0.1
License:

Disabling Spotlight in Snow Leopard is pretty easy, launch the Terminal and type the following command:

sudo mdutil -a -i off

This tells the Spotlight manager to disable all indexing on all volumes, the command will require your administrative password to execute.

Re-enabling Spotlight in Mac OS X 10.6 Snow Leopard is just as easy, just reverse the command to:

sudo mdutil -a -i on
Now Spotlight indexing will be back on

@niamrox
niamrox / fix_Locale.md
Last active February 2, 2017 09:46
Class 'Locale' not found

First Follow the steps

  • Open terminal application
  • Enter “which php" and if it says “/usr/bin/php”, then proceed to step 3.
  • Enter: sudo nano ~/.bash_profile
  • Then paste this:
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH
sudo rm -rf /Volumes/*/.Trashes
@niamrox
niamrox / wp_enqueue_script.txt
Created December 7, 2016 12:27
Enqueue Script For WordPress Themes and Plugins
https://code.tutsplus.com/articles/the-ins-and-outs-of-the-enqueue-script-for-wordpress-themes-and-plugins--wp-22509
@niamrox
niamrox / wp-query-ref.php
Created November 30, 2016 10:04 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?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(