I hereby claim:
- I am bmoredrew on github.
- I am bmoredrew (https://keybase.io/bmoredrew) on keybase.
- I have a public key whose fingerprint is 2B86 D9A4 6C9A 1BDC 85DD F73B AC84 7E2E BAF6 7B37
To claim this, I am signing this object:
| <? if ( 'my_posttype' == get_post_type() ) | |
| { | |
| global $post; | |
| if ( $post->post_parent ) | |
| { | |
| include dirname( __FILE__ ) . '/single-my_posttype-child.php'; | |
| return; | |
| } | |
| } |
| <?php | |
| $loop = new WP_Query( array( | |
| 'post_type' => 'team', | |
| 'posts_per_page' => 4, | |
| )); | |
| ?> | |
| <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
| In the template: | |
| <ul class="cf" id="port-grid"> | |
| <li class="web"> | |
| <a href="#"> | |
| <img src="img/img1.jpg" alt=""> | |
| <span> | |
| <span>Title</span> | |
| <span>Excerpt</span> | |
| </span> | |
| </a> |
| include_once( CHILD_DIR . '/featured-post-widget.php' ); | |
| add_action( 'widgets_init', 'load_custom_child_widget' ); | |
| function load_custom_child_widget() { | |
| unregister_widget( 'Genesis_Featured_Post' ); | |
| register_widget( 'Genesis_Child_Featured_Post' ); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| UPDATE wp_posts SET post_type = REPLACE(post_type,'old','new'); |
| Add this in single.php | |
| <div class="comments"> | |
| <?php | |
| if ( comments_open() || '0' != get_comments_number() ) : comments_template(); | |
| endif; | |
| ?> | |
| </div> | |
| Add this to style.css to center comments section |
| scp my_db.sql [email protected]:/username/my_folder/ |
| mysql -u username -p password my_db < my_db.sql |
| mysqldump -u username -p password my_db > my_db.sql |