Support » Fixing WordPress » Show latest post of category, when post uses Geolocation plugin

  • Resolved Angie Meeker

    (@ameeker)


    1. I am using a fork of the Geolocation plugin (http://wordpress.org/support/topic/updates-to-geolocation?replies=3) that gives the option to show the full map in the post itself, rather than only viewing the map when you hover over the link to the map.

    2. I’d like to show the latest post of the category using which will utilize the plugin on my site – in a widget.

    3. But when I do try to use it, either with the Latest Post widget or with the code below, I either don’t get the map (in the first case), or get nothing (in the second).

    Any thoughts on how I can get the whole content of the post to show in the widget, including the use of the plugin’s content?

    <?php $catposts = get_posts('numberposts=1&category_name=wheres-leslies'); foreach($catposts as $post):?><li><a href="<?php the_permalink(); ?>"><?php the_title();?></a></li><?php endforeach; ?>

Viewing 1 replies (of 1 total)
  • I thought it was an issue with the plugin – turns out the theme’s “custom” latest posts widget didn’t have the_content in the first place.

    [headsmack]

Viewing 1 replies (of 1 total)
  • The topic ‘Show latest post of category, when post uses Geolocation plugin’ is closed to new replies.