Support » Plugin: SimpleMap Store Locator » [Plugin: SimpleMap Store Locator] Any shortcodes to display a list of my locations?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This would be extremely helpful. Did you hear back on this?

    actually I think that there are no way to use shortcodes to do that, so I solved this problem using wordpress custom post type query:

    <?php
    global $post;
    $i = 0;
    $args = array( 'post_type' => 'sm-location', 'showposts' => number of posts to show, 'sm-category' => 'your-category');
    $myposts = get_posts( $args );
    
    foreach( $myposts as $post ) :	setup_postdata($post); ?>
    
    <a href="<?php echo $post->guid ?>"><?php the_title(); ?></a>
    
    <?php endforeach;  ?>

    cheerz =)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SimpleMap Store Locator] Any shortcodes to display a list of my locations?’ is closed to new replies.