WordPress.org

Ready to get started?Download WordPress

Forums

WP Geo
[resolved] A way to show listings for all pages (not only current) on category mashup maps (5 posts)

  1. oxwald
    Member
    Posted 2 years ago #

    Hi,
    I use wp geo on a french wedding place listing but when i display the wp geo mashup map on category pages, only the listings on the current page are displayed.
    Is there a way to display all listings for all the page of the current category or taxonomy
    http://www.mariage-unique.com/salle-mariage/
    Thank you very much

    http://wordpress.org/extend/plugins/wp-geo/

  2. Ben Huson
    Member
    Plugin Author

    Posted 2 years ago #

    Are you using the wpgeo_mashup shortcode or another function in your templates?
    Can you let me know exact which function you are using?

  3. oxwald
    Member
    Posted 2 years ago #

    The function i'm using :
    <?php if ( isset($wpgeo) ) $wpgeo->categoryMap(); ?>

  4. Ben Huson
    Member
    Plugin Author

    Posted 2 years ago #

    Instead try using wpgeo_map( $args ).
    This function accepts all the same arguments as get_posts()
    http://codex.wordpress.org/Template_Tags/get_posts
    ..so you should be able to do:

    <?php
    if ( function_exists( 'wpgeo_map' ) ) wpgeo_map( array(
       'numberposts' => -1
       'category' => {enter category ID here}
    ) );
    ?>
  5. oxwald
    Member
    Posted 2 years ago #

    Thank you very much, it's working fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags