Results 1 to 2 of 2

Thread: new page with ads in display mode List

  1. #1
    Thread Starter
    Expired Customer cyberm's Avatar
    Join Date
    Oct 2017
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post

    new page with ads in display mode List

    Hi,

    I create a new page name PRO.
    When i displays ads, they are in grid mode :

    code display with firefox (F12) :
    class="listing-item listing-map-data content-wrap display-grid

    But i want to have all ads PRO in list mode
    When i replace in firefox the code by display-list it's OK.

    Now i want "display-list" for all ads PRO for only the page PRO.

    Can you help me ?
    Thank you very much

    For my page PRO, i use a template :

    <?php
    /**
    * Template Name: Ads Home Template Pro
    *
    * @package ClassiPress\Templates
    * @author AppThemes
    * @since ClassiPress 3.3
    */
    ?>
    <div class"row small-up-1 medium-up-12 list-view listing-wrap">

    <?php

    $ads_args = array(
    'post_type' => APP_POST_TYPE,
    'posts_per_page' => $number,
    'post_status' => 'publish',
    'meta_query' => array(
    array(
    'key' => 'cp_vous_tes',
    'value' => 'professionnel',
    'compare' => 'like',

    ),
    ),
    'no_found_rows' => true,
    );

    $pro_ads = new WP_Query( $ads_args );

    $result = '';
    ?>

    <div id="primary" class="content-area row">

    <div class="columns">

    <?php get_template_part( 'parts/breadcrumbs', app_template_base() ); ?>

    </div>

    <?php if ( 'left' == get_theme_mod( 'listing_archive_sidebar_position', 'right' ) ) { get_sidebar(); } ?>


    <main id="main" class="site-main m-large-8 columns" role="main">

    <section>

    <?php
    if ( $pro_ads->have_posts() ) : ?>

    <div class="row small-up-1 medium-up-12 list-view listing-wrap">

    <?php while ( $pro_ads->have_posts() ): $pro_ads->the_post(); ?>

    <div class="column">

    <?php get_template_part( 'parts/content-item', APP_POST_TYPE ); ?>

    </div> <!-- .column -->

    <?php endwhile; ?>

    </div> <!-- .row -->

    <?php cp_do_pagination();

    endif;

    appthemes_after_loop( get_post_type() ); ?>

    </section>

    </main>

    <?php if ( 'right' == get_theme_mod( 'listing_archive_sidebar_position', 'right' ) ) { get_sidebar(); } ?>

    </div> <!-- #primary -->

  2. #2
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,768
    Thanks
    242
    Thanked 1,068 Times in 1,008 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to display onlu sub categories on home page directory list ?
    By anilkumarkanneboina in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: May 7th, 2012, 12:39 PM
  2. How display ads by gallery or list on front page?
    By lars in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 20th, 2012, 06:37 AM