Skip to main content

Posts

Showing posts from January, 2018

Ref

<div id="myModaleps" class="modal fade" style="display:none;">     <div class="modal-dialog">         <div class="modal-content">             <div class="modal-header">                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>                 <h4 class="modal-title">Choose Your Language.</h4>             </div>             <div class="modal-body"> <p>Choose Your Language.</p> <?php   $ref = getenv("HTTP_REFERER");    $getMydomain = $_SERVER['HTTP_HOST'];    $getRefUrl =  parse_url($ref, PHP_URL_HOST);     if($getRefUrl!= $getMydomain) {   $path = parse_url($ref, PHP_URL_PATH);   $_SESSION['sessUrl'] = $...

Get Custom Post Type In Wordpress

      <?php              $args = array( 'post_type' => 'car', 'posts_per_page' => 6,'category_name' => 'pre-owned-cars' );               $loop = new WP_Query( $args );                 while ( $loop->have_posts() ) : $loop->the_post();          ?><center> <div class="col-md-4 infocars"> <div class="homecars">           <div class="v-img"><?php if ( has_post_thumbnail() ) { ?>   <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?></a>    <?php } ?>   </div>        <div class="vtitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> ...