WordPress.org

Forums

WP Geo
[resolved] page for all my listing property (3 posts)

  1. bessyvl
    Member
    Posted 2 years ago #

    Hello Ben Congratulations for the plugin is very good, the I Ney question I want to make a page where displaying all the listings of properties that make google maps, listings have with no post, please can you help me to send the code forcreating page for all listings.
    Best Regards
    Besi

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

  2. Ben Huson
    Member
    Plugin Author

    Posted 2 years ago #

    I can point you in roughly the right direction....

    In your templates you could use the WordPress get_posts function - see the example here:
    http://codex.wordpress.org/Template_Tags/get_posts

    You can use this to get all the posts that have a location like this:

    $posts = get_posts( array(
    	'numberposts'  => -1],
    	'meta_key'     => WPGEO_LATITUDE_META,
    	'meta_value'   => '',
    	'meta_compare' => '!='
    ) );

    Hope that helps

  3. bessyvl
    Member
    Posted 2 years ago #

    thnx for help Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Geo
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.