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
Genesis_image will return full HTML (it may not be what you are looking for). | |
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
<html> | |
<head> | |
<script type='text/javascript' src='jquery-1.11.1.min.js'></script> | |
<script type='text/javascript'> | |
$( document ).ready(function() { | |
console.log( "ready!" ); | |
}); | |
</script> |
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
rename table wp_79_posts to wp_tmp_posts, wp_79_postmeta to wp_tmp_postmeta, wp_79_terms to wp_tmp_terms, wp_79_term_taxonomy to wp_tmp_term_taxonomy, wp_79_term_relationships to wp_tmp_term_relationships, wp_79_p2p to wp_tmp_p2p, wp_79_p2pmeta to wp_tmp_p2pmeta; | |
create table wp_79_posts like wp_posts; | |
INSERT wp_79_posts SELECT * FROM wp_posts; | |
create table wp_79_postmeta like wp_postmeta; | |
INSERT wp_79_postmeta SELECT * FROM wp_postmeta; | |
-- | |
create table wp_79_terms like wp_terms; | |
INSERT wp_79_terms SELECT * FROM wp_terms; | |
create table wp_79_term_taxonomy like wp_term_taxonomy; |
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
*/.ssh | |
.ssh/* | |
.mysql_history | |
.vim* | |
.bash* | |
.htaccess | |
*~ | |
.DS_Store | |
.svn | |
.cvs |
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
/* | |
* Reading switches and tell to Serial. | |
* | |
*/ | |
int numPins = 2; | |
int out[] = {4,5}; | |
int in[] = {2,3}; | |
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
<p>Your Name (required)<br /> | |
[text* your-name] </p> | |
<p>Your Email (required)<br /> | |
[email* your-email] </p> | |
<p>Subject<br /> | |
[text your-subject] </p> | |
<p>Your Message<br /> | |
[textarea your-message] </p> | |
<p class="captcha"> | |
Enter the following phrase in the text box below: |
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
register_post_type('book', array('label' => 'Books', | |
'description' => 'Books and other items for sale on the Heyday website', | |
'public' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'rewrite' => array('slug' => ''), | |
'query_var' => true, | |
'supports' => array('title','editor','excerpt','custom-fields','revisions','thumbnail','author','page-attributes',), |
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
#!/usr/bin/sh | |
# This script will overwrite an existing | |
# WordPress installation with the current | |
# head of trunk. Once it has been reverted, | |
# you may need to update the database, and | |
# WP will prompt you for that automatically. | |
# This is untested with these options! | |
# The script commands work from the command |
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
-- handy for moving a database from prouction to your local environment. | |
-- change URL's in wordpress single-site install. Replace with your own URL's. | |
-- this doesn't address serialized options. | |
UPDATE wp_options SET option_value = "http://localhost:8888" WHERE option_name = "home"; | |
UPDATE wp_options SET option_value = "http://localhost:8888" WHERE option_name = "siteurl"; | |
update wp_postmeta set meta_value = replace(meta_value, 'http://example.com', 'http://localhost:8888') where meta_key='_menu_item_url'; | |
update wp_posts set post_content = replace(post_content, 'http://example.com', 'http://localhost:8888'); |
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
# This script is for shell users who have previously created a database. | |
mkdir ~/installs | |
cd ~/installs | |
wget http://wordpress.org/latest.zip | |
unzip latest.zip | |
cp wordpress/* ~/public_html/ | |
cd ~/public_html/ | |
cp wp-config-sample.php wp-config.php | |
vi wp-config.php |
OlderNewer