albertord
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Classifieds & Directory Pro] WP_Query featuredThis 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(); ?>Forum: Plugins
In reply to: [Advanced Classifieds & Directory Pro] WP_Query featuredI’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(); ?>
Forum: Plugins
In reply to: [Advanced Classifieds & Directory Pro] Edit acadp-public-listing-display.phpThanks you 🙂
Forum: Plugins
In reply to: [Module Positions] query to check/see if moduleposition in a group<?php
$modulenew = do_shortcode(‘[moduleposition id=”1″]’);if ($modulenew) {
echo $modulenew;
}else{
do_shortcode(‘[moduleposition id=”2″]’);
}
?>