Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Dealers-list-->
- <section class="inner_pages">
- <div class="container">
- <div class="dealers_list_wrap">
- <?php
- // Modify get_posts args for your needs
- $job_details = get_posts( array ( 'post_type' => 'awsm_job_openings' ) );
- if ( $job_details )
- {
- foreach ( $job_details as $job ) { ?>
- <?php $company = get_post_meta( $job->ID, 'company', true ); ?>
- <?php $location = get_post_meta( $job->ID, 'ajo_loc', true ); ?>
- <?php $website = get_post_meta( $job->ID, 'website', true ); ?>
- <div class="dealers_listing">
- <div class="row">
- <?php echo the_title(); ?>
- <div class="col-sm-3 col-xs-4">
- <div class="dealer_info">
- <h5><a href="#"><?php echo the_title(); ?></a></h5>
- <p> <?php echo $website ; ?><br>
- </p>
- </div>
- </div>
- </div>
- </div>
- <?php } } ?>
- </div>
- </div>
- </section>
- <!--/Dealers-list-->
- <?php
- return ob_get_clean();
- }
- function ajo_job_listings()
- {
- $args = array(
- 'post_type' => 'awsm_job_openings',
- 'post_status' => 'publish'
- );
- $query = new WP_Query( $args );
- if( $query->have_posts() ){
- while( $query->have_posts() ){
- $query->the_post();
- ?>
- <li><a href="#post-<?php echo the_ID(); ?>"><?php the_title(); ?></a></li>
- <?php }
- }
- wp_reset_postdata();
- return $data;
- }
- public function ajo_job_opening_scripts_and_styles()
- {
- //Name of style sheet "it must be unique" and the path of the stylesheet.....
- wp_enqueue_style( 'ajo_job_opening_sheets', plugins_url( 'job-openings/assets/css/bootstrap.min.css' ) );
- wp_enqueue_style( 'ajo_job_opening_sheets2', plugins_url( 'job-openings/assets/css/style.css' ) );
- wp_enqueue_style( 'ajo_job_opening-bootstrap', plugins_url( 'assets/js/bootstrap.min.js', __FILE__), array('jquery'), '', true );
- }
- public function ajo_job_opening_title( $post = null ) {
- if ( $job_title = ajo_display_title( $post ) ) {
- echo $job_title;
- }
- }
- }//Class closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement