Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter albertord

    (@albertord)

    This is my code.

    <?php $args=array(
    'post_type' => 'acadp_listings',
    'orderby' => 'date',
    'order' => 'ASC',
    'posts_per_page' => -1,
    'post_status' => 'publish',
    'filterby' => 'featured'
    ); ?>
    
    <?php $bici = new WP_Query($args); ?>
    
    <?php while($bici->have_posts()): $bici->the_post(); $post_meta = get_post_meta( $post->ID );?>
    
    <?php the_acadp_listing_thumbnail( $post_meta ); ?>
    
    <<?php echo $post->post_title; ?>
    
    <?php $price = acadp_format_amount( $post_meta['price'][0] );
    echo acadp_currency_filter( $price ); ?>
    
    <?php endwhile; wp_reset_postdata(); ?>
    Thread Starter albertord

    (@albertord)

    I’m doing a carousel of products with JQuery, I’m taking the name, photo and price, but only need to show the feature.

    This is my code.

    `
    <?php $args=array(
    ‘post_type’ => ‘acadp_listings’,
    ‘orderby’ => ‘date’,
    ‘order’ => ‘ASC’,
    ‘posts_per_page’ => -1,
    ‘post_status’ => ‘publish’,
    ‘filterby’ => ‘featured’
    ); ?>

    <?php $bici = new WP_Query($args); ?>

    <?php while($bici->have_posts()): $bici->the_post(); $post_meta = get_post_meta( $post->ID );?>

    <?php the_acadp_listing_thumbnail( $post_meta ); ?>

    <<?php echo $post->post_title; ?>

    <?php $price = acadp_format_amount( $post_meta[‘price’][0] );
    echo acadp_currency_filter( $price ); ?>

    <?php endwhile; wp_reset_postdata(); ?>

    Thread Starter albertord

    (@albertord)

    Thanks you 🙂

    <?php
    $modulenew = do_shortcode(‘[moduleposition id=”1″]’);

    if ($modulenew) {
    echo $modulenew;
    }else{
    do_shortcode(‘[moduleposition id=”2″]’);
    }
    ?>

Viewing 4 replies - 1 through 4 (of 4 total)