Plugin Directory

Changeset 1225675


Ignore:
Timestamp:
08/19/2015 11:07:52 PM (11 years ago)
Author:
toddnestor
Message:

now we return post thumbnail and url with post data

Location:
sm-connect
Files:
23 added
3 edited

Legend:

Unmodified
Added
Removed
  • sm-connect/trunk/class/class-sm-helper.php

    r1225215 r1225675  
    6363                'posts_per_page' => 100
    6464            ) );
     65
     66        foreach( $posts as $key => $val )
     67        {
     68            $posts[ $key ]->url       = get_the_permalink( $val->ID );
     69            $posts[ $key ]->thumbnail = wp_get_attachment_url( get_post_thumbnail_id( $val->ID ) );
     70
     71            if( !$posts[ $key ]->thumbnail )
     72                unset( $posts[ $key ] );
     73        }
    6574
    6675        $this->ApiEcho( $posts );
  • sm-connect/trunk/readme.txt

    r1225521 r1225675  
    44Requires at least: 3.6
    55Tested up to: 4.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPL v2
    88
     
    3939== Changelog ==
    4040
    41 = 1.0 =
     41= 1.0.1 =
     42* Post Urls and thumbnails now returned with the list_posts call.
     43
     44= 1.0.0 =
    4245* SM Connector creation
  • sm-connect/trunk/sm-connector.php

    r1225215 r1225675  
    44 * Description: Smartmember Connector is a plugin that connects your blog with SmartMember and allows you to import
    55 * content to SmartMember as lessons, custom pages, or blog posts.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Internet Marketing Bar
    88 * Author URI: http://internetmarketingbar.com
Note: See TracChangeset for help on using the changeset viewer.