This file contains hidden or 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_action('wp_head', 'remove_one_wpseo_og', 1); | |
| function remove_one_wpseo_og() { | |
| global $post; | |
| if( $post->post_type == 'shorthand_story' ){ | |
| remove_action( 'wpseo_head', array( $GLOBALS['wpseo_og'], 'opengraph' ), 30 ); | |
| } | |
| } |
This file contains hidden or 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 get_header(); | |
| if ( post_password_required( $post->ID ) ) { | |
| echo get_the_password_form(); | |
| } else { | |
| while ( have_posts() ) : the_post(); | |
| $meta = get_post_meta($post->ID); | |
| ?> |
This file contains hidden or 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
| $custom_post_types = array( "my_post" => "my_post"); | |
| $max_archive_pages = 0; // 0 == all archive page #s | |
| function post_status( $new_status, $old_status, $post ) | |
| { | |
| global $custom_post_types, $max_archive_pages; | |
| if ( array_key_exists( $post->post_type, $custom_post_types ) && ( $new_status === "publish" || $old_status === "publish" ) ) | |
| { |
This file contains hidden or 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
| for d in *; do | |
| if [[ -d $d ]]; then | |
| if [ -f $d/wp-config.php ]; then | |
| siteName=`basename "$d"` | |
| # See if there is a composer file inside the site folder | |
| if [ -f $d/composer.json ]; then | |
| echo " - Updating $siteName" |
This file contains hidden or 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
| # echo "Installing Capistrano" | |
| # /home/vagrant/.rbenv/shims/gem install capistrano -q | |
| # | |
| # echo "Updating Composer" | |
| # sudo composer self-update --quiet | |
| echo "*/20 * * * * ~/cron-run.sh >> ~/cron.log 2>&1" >> ~/mycron | |
| # cp /var/www/atomic-scotch-box/* ~/ |
This file contains hidden or 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
| */1 * * * * wget http://www.domain.com/wp-cron.php?doing_wp_cron 2>&1 > /dev/nul |
This file contains hidden or 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
| define( 'DISABLE_WP_CRON', true ); |
This file contains hidden or 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 | |
| $post_thumbnail_id = get_post_thumbnail_id($post->ID); | |
| $post_thumbnail_url = wp_get_attachment_image_src( $post_thumbnail_id ); | |
| ?> | |
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "Article", | |
| "mainEntityOfPage": { | |
| "@type": "WebPage", |
This file contains hidden or 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
| {% include 'jsonld/structured-data-single.twig' %} |
This file contains hidden or 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
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "Article", | |
| "mainEntityOfPage": { | |
| "@type": "WebPage", | |
| "@id": "{{post.link}}" | |
| }, | |
| "headline": "{{ post.title }}", | |
| "image": { |