- Initial Server Setup with Ubuntu 12.04
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04
- A Basic MySQL Tutorial
- How To Install phpMyAdmin on a LEMP server
- How To Install Git on Ubuntu 12.04
- Generating SSH Keys and connect with DigitalOcean
- Fix IPv4 fallback for apt-get
- [Install Composer on DigitalOcean](ht
This file contains 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
$s_title = single_cat_title('', false); | |
$s_title = str_replace(' @en', '', $title); |
This file contains 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 | |
/* Template Name: News Archive */ | |
?> | |
<?php | |
include('archive.php'); | |
?> | |
<?php | |
/* don't forget to put these in your functions.php */ |
This file contains 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
#!/bin/bash | |
# | |
# This script has been adapted from the drush wrapper script | |
# and all credit should go to the authors of that project: | |
# http://drupal.org/project/drush | |
# Get the absolute path of this executable | |
ORIGDIR=$(pwd) | |
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0") |
This file contains 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 | |
$settings = array( | |
'DB_HOST' => 'localhost', | |
'DB_NAME' => '%DBNAME%', | |
'DB_USER' => '%DBUSER%', | |
'DB_PASSWORD' => '%DBPASS%', | |
'DOMAIN_CURRENT_SITE' => '%SITEURL%', | |
'WP_DEBUG' => TRUE, | |
'ENVIRONMENT' => 'dev', | |
'ACF_REPEATER' => "", |
This file contains 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
<VirtualHost *:80> | |
ServerName local.%PROJECT% | |
ServerAlias local.%PROJECT% | |
DocumentRoot %DOCROOT% | |
<Directory "%DOCROOT%/"> | |
Options Indexes FollowSymLinks |
This file contains 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
#!/bin/bash | |
# Provide a way to upgrade the network after `wp core update` | |
# https://github.com/wp-cli/wp-cli/issues/683 | |
for url in $(wp site list --fields=url --format=csv | tail -n +2) | |
do | |
wp --url=$url core update-db | |
done |
This file contains 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
add_filter( 'woocommerce_order_number', 'jm_woocommerce_order_number', 1, 2 ); | |
/** | |
* Remove # prefix from WooCommerce Order Number | |
* Could also be done with gettext: https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L537 | |
* | |
*/ | |
function jm_woocommerce_order_number( $oldnumber, $order ) { | |
return str_replace('#', '', $order->id); | |
} |
This file contains 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
<div id="selected-filters" class="selected-filters"> | |
<h4><?php _e('Selected filters','rc'); ?>:</h4> | |
<?php echo facetwp_display('selections'); ?> | |
<span class="facetwp-reset" onclick="FWP.reset()"><?php _e('reset all filters','rc'); ?></span> | |
</div> |
This file contains 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
{ | |
"name": "level-level/wp-clarkson.com", | |
"type": "project", | |
"license": "MIT", | |
"description": "A modern WordPress development", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://wpackagist.org" | |
}, |
OlderNewer