This should work on at least:
- 10.9 Mavericks
- 10.10 Yosemite
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
and add this to the bottom:
<?php | |
/** | |
* Replaces paragraph elements with double line-breaks. | |
* | |
* This is the inverse behavior of the wpautop() function | |
* found in WordPress which converts double line-breaks to | |
* paragraphs. Handy when you want to undo whatever it did. | |
* | |
* @see wpautop() |
<?php | |
/** | |
* @package Food_example_plugin | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Food example plugin | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin for WPMU DEV readers | |
Author: Carlo Daniele |
$(document).ready(function() { | |
$('.navigation-main .navigation--entry').off(); | |
$('.navigation-main .navigation--entry').click(function() { | |
if( $(this).hasClass('is--hovered') ) { | |
$(this).removeClass('is--hovered'); | |
$('.advanced-menu .menu--is-active').removeClass('menu--is-active'); | |
return false; | |
} | |
else { | |
$(this).siblings('.is--hovered').removeClass('is--hovered'); |
<?php | |
$forms = Ninja_Forms()->form()->get_forms(); | |
foreach ( $forms as $form ) { | |
$form_id = $form->get_id(); | |
$form_name = $form->get_setting( 'title' ); | |
// Do more stuff | |
} |
function basename(path) { | |
return path.split('/').reverse()[0]; | |
} | |
var gulp = require('gulp'), | |
less = require('gulp-less'), | |
concat = require('gulp-concat'), | |
rename = require('gulp-rename'), | |
path = require('path'), | |
fs = require('fs'), |
<?php | |
function wpmark_alter_team_archive_template_query( $query ) { | |
/* only proceed on the front end */ | |
if( is_admin() ) { | |
return; | |
} | |
/* only on the person post archive for the main query */ | |
if ( $query->is_post_type_archive( 'wpmark_person' ) && $query->is_main_query() ) { |
This should work on at least:
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
and add this to the bottom:
<?php | |
$rows = get_post_meta( get_the_ID(), 'be_content', true ); | |
foreach( $rows as $count => $row ) { | |
switch ( $row ) { | |
case 'type_1': | |
$content = get_post_meta( get_the_ID(), 'be_content_' . $count . '_field_name', true ); | |
echo '<div class="type-one">' . wpautop( $content ) . '</div>; |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.