It's always quite a struggle to keep people doing it correctly on CSS-Tricks, so I'd love if there was a plugin to make it more foolproof.
The overall idea: make it so if you use <code>
tags, it will come out perfectly.
Needs some love. Styles in the footer, assumptions about jQuery, yadda yadda yadda... |
array( | |
"AF" => "Afghanistan (افغانستان)", | |
"AX" => "Åland Islands (Åland)", | |
"AL" => "Albania (Shqipëri)", | |
"DZ" => "Algeria (الجزائر)", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", | |
"AI" => "Anguilla", | |
"AQ" => "Antarctica", |
$content = get_post( 1558 ); | |
$content = $content->post_content; | |
$content_array = explode( "\n", $content ); | |
echo 'before<pre>'; | |
print_r($content_array); | |
echo '</pre>'; | |
foreach ( $content_array as $k => $v ) { |
It's always quite a struggle to keep people doing it correctly on CSS-Tricks, so I'd love if there was a plugin to make it more foolproof.
The overall idea: make it so if you use <code>
tags, it will come out perfectly.
<?php | |
// Changes to metabox array, new field 'show_on' | |
$meta_boxes[] = array( | |
'id' => 'blog-options', | |
'title' => 'Blog Options', | |
'pages' => array('page'), | |
'show_on' => array( 'key' => 'id', 'value' => array( 12 ) ), | |
'context' => 'normal', | |
'priority' => 'low', |
<?php | |
add_action( 'genesis_before_loop', 'be_recipe_archive_intro', 15 ); | |
/** | |
* Intro - Recipe Archive | |
* @author Bill Erickson | |
* | |
* (in archive-recipes.php) | |
*/ | |
function be_recipe_archive_intro() { |
<?php | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
<?php | |
/** | |
* Functions.php | |
* | |
* This file handles the child theme setup and intialization. | |
* | |
* @category FMG | |
* @package Functions | |
* @author Greg Rickaby | |
* @since 1.0.0 |
<?php | |
if ( has_post_thumbnail() ) { | |
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); | |
$obg_img = $thumb['0']; | |
} | |
echo '<img src="'. $obj_img .'" />'; |
This quick start guide is geared towards installing PHPUnit on OSX in order to run the WordPress unit tests. It uses homebrew to install PHP using homebrew-php. You can likely skip this step if you've already got php and pear installed properly.
If you use MAMP, then try these instructions to use MAMP's php and pear to install PHPUnit.
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)