Plugin Directory

Changeset 2470287


Ignore:
Timestamp:
02/07/2021 08:20:49 AM (5 years ago)
Author:
danikoo
Message:

2021-02-04 version 2.1.0

added - show short contnet in description field (using get_the_excerpt function) where excerpt is missing

Location:
custom-simple-rss/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-simple-rss/trunk/custom-simple-rss.php

    r2216984 r2470287  
    55 * Plugin URI:   
    66 * Description:   A plugin to create a Custom Simple RSS Feed according to chosen parameters
    7  * Version:       2.0.9
     7 * Version:       2.1.0
    88 * Author:        Danny(Danikoo) Haggag
    99 * Author URI:    http://www.danikoo.com
     
    337337                $post_id = get_the_ID();
    338338                $the_post = get_post($post_id);
    339                 $excerpt = $the_post->post_excerpt;
     339                /*
     340                 * $excerpt = $the_post->post_excerpt;
     341                 * since 2021 feb 04
     342                 * */               
     343                add_filter('excerpt_more', 'custom_simple_rss_excerpt_more');
     344                $excerpt = get_the_excerpt($post_id);               
    340345                $modified = $the_post->post_modified;
    341346                $created = $the_post->post_date;
     
    598603                $post_id = get_the_ID();
    599604                $the_post = get_post($post_id);
    600                 $excerpt = $the_post->post_excerpt;
     605                /* $excerpt = $the_post->post_excerpt;
     606                 * since 2021 feb 04
     607                 * */
     608                add_filter('excerpt_more', 'custom_simple_rss_excerpt_more');
     609                $excerpt = get_the_excerpt($post_id);               
    601610                $modified = $the_post->post_modified;
    602611                $created = $the_post->post_date;
     
    820829    return $custom_simple_rss_options;
    821830}
     831
     832function custom_simple_rss_excerpt_more( $more ) {
     833    return '';
     834}
  • custom-simple-rss/trunk/readme.txt

    r2469131 r2470287  
    7979== Changelog ==
    8080
     81**2.1.0**
     82
     832021-02-04 version 2.1.0
     84
     851. added - show short contnet in description field (using get_the_excerpt function) where excerpt is missing
     86
     87
    8188**2.0.9**
    8289
Note: See TracChangeset for help on using the changeset viewer.