Plugin Directory

Changeset 3006495


Ignore:
Timestamp:
12/06/2023 11:11:50 PM (16 months ago)
Author:
firmcatalyst
Message:

hardcoded template with excerpt fixed, 6.4 tested

Location:
fcp-posts-by-search-query/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fcp-posts-by-search-query/trunk/inc/shortcode.php

    r2982729 r3006495  
    140140
    141141        // prepare the values to fill in the template
     142        $excerpt = $crop_excerpt( ( has_excerpt( $p ) ? get_the_excerpt( $p ) : wp_strip_all_tags( get_the_content( null, false, $p ), true ) ), $settings['excerpt-length'] ?: 200 );
    142143        $categories = isset( $settings['hide-category'] ) ? [] : get_the_category( $p );
    143144
     
    154155            'date' => isset( $settings['hide-date'] ) ? '' : get_the_date( '', $p ),
    155156            'datetime_attr' => isset( $settings['hide-date'] ) ? '' : get_the_date( 'Y-m-d', $p ),
    156             'excerpt' => isset( $settings['hide-excerpt'] ) ? '' : esc_html( $crop_excerpt( wp_strip_all_tags( get_the_content( null, false, $p ), true ), $settings['excerpt-length'] ?: 200 ) ),
     157            'excerpt' => isset( $settings['hide-excerpt'] ) ? '' : esc_html( $excerpt ),
    157158            'category' => empty( $categories ) ? '' : esc_html( $categories[0]->name ),
    158159            'category_link' => empty( $categories ) ? '' : get_category_link( $categories[0]->term_id ),
  • fcp-posts-by-search-query/trunk/posts-by-query.php

    r2982729 r3006495  
    33Plugin Name: Posts by Search Query
    44Description: Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add. Print with the shortcode <code>[fcppbk]</code>
    5 Version: 1.0.7
     5Version: 1.0.8
    66Requires at least: 5.8
    7 Tested up to: 6.3
     7Tested up to: 6.4
    88Requires PHP: 7.4
    99Author: Firmcatalyst, Vadim Volkov, Aude Jamier
  • fcp-posts-by-search-query/trunk/readme.txt

    r2982729 r3006495  
    33Tags: posts, list posts
    44Requires at least: 5.8
    5 Tested up to: 6.3
     5Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88Author: Firmcatalyst, Vadim Volkov, Aude Jamier
    99Author URI: https://firmcatalyst.com/about/
     
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1212
    13 Posts by Search Query
     13Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add. Print with the shortcode `[fcppbk]`
    1414
    1515== Description ==
Note: See TracChangeset for help on using the changeset viewer.