Plugin Directory

Changeset 2982729


Ignore:
Timestamp:
10/23/2023 05:45:27 PM (17 months ago)
Author:
firmcatalyst
Message:

A few minor fixes

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

Legend:

Unmodified
Added
Removed
  • fcp-posts-by-search-query/trunk/README.md

    r2927416 r2982729  
    1 # FCP Posts by Search Query
     1# Posts by Search Query
    22
    3 Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add.
     3Implement 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]`
    44
    55## Features
     
    99* Simple and flexible inteface for picking posts
    1010* Apply to any post / page / custom post-type
    11 * Implement with the \[fcppbk\] shortcode
     11* Implement with the `\[fcppbk\]` shortcode
    1212* It minifies the css before printing
    1313* Polylang friendly
     
    2121* Install and activate the plugin
    2222* Go to "Settings" -> "Posts by Query" to change the plugin settings
    23 * Implement the shortcode \[fcppbk\] where you want the posts to be printed
     23* Implement the shortcode `\[fcppbk\]` where you want the posts to be printed
    2424* Go to the post / page editor, scroll to the bottom and add the search query or pick particular posts to be printed
  • fcp-posts-by-search-query/trunk/inc/settings-page.php

    r2927964 r2982729  
    2323            ['Default thumbnail', 'image', [ 'comment' => 'This image is shown, if a post doesn\'t have the featured image', 'className' => 'image' ]],
    2424            ['Thumbnail size', 'select', [ 'options' => '%thumbnail_sizes' ]],
    25             ['Excerpt length', 'number', [ 'step' => 1, 'comment' => 'Cut the excerpt to the number of symbols', 'filter' => 'integer' ]],
     25            ['Excerpt length', 'number', [ 'step' => 1, 'comment' => 'The length of the excerpt in symbols. Full words are preserved.', 'filter' => 'integer', 'placeholder' => '200' ]],
    2626            ['"Read more" text', 'text', [ 'placeholder' => __( 'Read more' ) ]],
    2727        ],
  • fcp-posts-by-search-query/trunk/inc/shortcode.php

    r2944709 r2982729  
    154154            'date' => isset( $settings['hide-date'] ) ? '' : get_the_date( '', $p ),
    155155            'datetime_attr' => isset( $settings['hide-date'] ) ? '' : get_the_date( 'Y-m-d', $p ),
    156             'excerpt' => isset( $settings['hide-excerpt'] ) ? '' : esc_html( $crop_excerpt( get_the_excerpt( $p ), $settings['excerpt-length'] ) ),
     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 ) ),
    157157            'category' => empty( $categories ) ? '' : esc_html( $categories[0]->name ),
    158158            'category_link' => empty( $categories ) ? '' : get_category_link( $categories[0]->term_id ),
  • fcp-posts-by-search-query/trunk/posts-by-query.php

    r2982112 r2982729  
    11<?php
    22/*
    3 Plugin Name: FCP Posts by Search Query
    4 Description: Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add.
    5 Version: 1.0.6
     3Plugin Name: Posts by Search Query
     4Description: 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>
     5Version: 1.0.7
    66Requires at least: 5.8
    77Tested up to: 6.3
    88Requires PHP: 7.4
    99Author: Firmcatalyst, Vadim Volkov, Aude Jamier
    10 Author URI: https://firmcatalyst.com
     10Author URI: https://firmcatalyst.com/about/
    1111License: GPL v3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2222define( 'FCPPBK_URL', plugin_dir_url( __FILE__ ) );
    2323define( 'FCPPBK_DIR', plugin_dir_path( __FILE__ ) );
     24define( 'FCPPBK_BSN', plugin_basename(__FILE__) );
    2425
    2526
     
    3738});
    3839
     40// link the settings from the plugins list
     41add_filter( 'plugin_action_links_'.FCPPBK_BSN, function($links) {
     42    $settings_link = '<a href="' . esc_url( admin_url( 'options-general.php?page='.dirname(FCPPBK_BSN) ) ) . '">Settings</a>';
     43    array_unshift( $links, $settings_link );
     44    return $links;
     45});
    3946
    4047
  • fcp-posts-by-search-query/trunk/readme.txt

    r2982112 r2982729  
    1 === FCP Posts by Search Query ===
     1=== Posts by Search Query ===
    22Contributors: Firmcatalyst
    33Tags: posts, list posts
     
    55Tested up to: 6.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88Author: Firmcatalyst, Vadim Volkov, Aude Jamier
    9 Author URI: https://firmcatalyst.com
     9Author URI: https://firmcatalyst.com/about/
    1010License: GPL v3 or later
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1212
    13 FCP Posts by Search Query
     13Posts by Search Query
    1414
    1515== Description ==
    1616
    17 Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add.
     17Implement 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]`
    1818
    1919= Features =
     
    2323* Simple and flexible inteface for picking posts
    2424* Apply to any post / page / custom post-type
    25 * Implement with the \[fcppbk\] shortcode
     25* Implement with the `\[fcppbk\]` shortcode
    2626* It minifies the css before printing
    2727* Polylang friendly
     
    3535* Install and activate the plugin
    3636* Go to "Settings" -> "Posts by Query" to change the plugin settings
    37 * Implement the shortcode \[fcppbk\] where you want the posts to be printed
     37* Implement the shortcode `\[fcppbk\]` where you want the posts to be printed
    3838* Go to the post / page editor, scroll to the bottom and add the search query or pick particular posts to be printed
    3939
Note: See TracChangeset for help on using the changeset viewer.