Last active
April 25, 2018 15:32
-
-
Save AnkanSoul/f745e2d1a660aeb111b6d5cff8d8116c to your computer and use it in GitHub Desktop.
Blog Material
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 | |
| $args=array('post_type' => 'service','posts_per_page'=>6,'order' => 'ASC',) ; | |
| $the_qyery= new WP_Query($args); | |
| if ($the_qyery->have_posts()) : | |
| while ( $the_qyery->have_posts() ) : $the_qyery->the_post();?> | |
| <?php echo get_template_directory_uri(); ?>/ | |
| <?php echo get_home_url(); ?>/ | |
| <?php echo site_url(); ?>/ | |
| <?php echo base_url(); ?>/ | |
| <?php the_post_thumbnail() ;?> | |
| <?php the_post_thumbnail_url(); ?> | |
| <?php the_permalink(); ?> | |
| <?php the_title() ; ?> | |
| <?php the_excerpt() ; ?> | |
| <?php the_content() ; ?> | |
| <p>Modified: <?php the_modified_date('j\<\s\u\p\>S\<\/\s\u\p\> M Y'); ?></p> | |
| <p>Publish: <?php the_date('j\<\s\u\p\>S\<\/\s\u\p\> M Y'); ?></p> | |
| <?php echo get_comments_number(); ?> //Comments counter | |
| <?php endwhile; | |
| endif ; ?> | |
| <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?> | |
| <?php echo home_url(); ?> | |
| <?php the_field('title2') ; ?> | |
| <?php echo get_the_date(); ?> | |
| <?php the_time('D'); ?><?php the_time('M'); ?><?php the_time('Y'); ?> | |
| <?php the_author(); ?> | |
| <?php | |
| $args=array('post_type' => 'service','posts_per_page'=>6,'order' => 'ASC',) ; | |
| $the_qyery= new WP_Query($args); | |
| if ($the_qyery->have_posts()) : | |
| while ( $the_qyery->have_posts() ) : $the_qyery->the_post();?> | |
| <?php | |
| $args=array('post_type' => 'post') ; | |
| $the_qyery= new WP_Query( array( 'category_name' => 'comments-blog') ); | |
| if ($the_qyery->have_posts()) : | |
| while ( $the_qyery->have_posts() ) : $the_qyery->the_post();?> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment