WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show latest post of category, when post uses Geolocation plugin (2 posts)

  1. AMEEKER
    Member
    Posted 2 years ago #

    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; ?>

  2. AMEEKER
    Member
    Posted 2 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic