WordPress.org

Plugin Directory

Changeset 1221276


Ignore:
Timestamp:
08/14/15 21:20:07 (3 years ago)
Author:
sajib1223
Message:

included post_name shortcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • w4-post-list/trunk/inc/helper-posts.php

    r1210012 r1221276  
    6666                <br /><strong>wordlimit</strong> = (number), limit number of words to display 
    6767                <br /><strong>charlimit</strong> = (number), limit number of characters to display' 
     68            ), 
     69            'post_name' => array( 
     70                'group'     => 'Post',  
     71                'callback'  => array('W4PL_Helper_Posts', 'post_name'), 
     72                'desc'      => '<strong>'. __('Output', W4PL_TD) .'</strong>: post name' 
    6873            ), 
    6974            'post_comment_url' => array( 
     
    336341        return $return; 
    337342    } 
    338  
     343    public static function post_name($attr, $cont){ global $post; return $post->post_name; } 
    339344    public static function post_comment_url($attr, $cont){ return get_permalink() . "#comments"; } 
    340345    public static function post_comment_count($attr, $cont){ global $post; return (int) $post->comment_count; } 
Note: See TracChangeset for help on using the changeset viewer.