Changeset 2982729
- Timestamp:
- 10/23/2023 05:45:27 PM (17 months ago)
- 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 # FCPPosts by Search Query1 # Posts by Search Query 2 2 3 Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add. 3 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 `[fcppbk]` 4 4 5 5 ## Features … … 9 9 * Simple and flexible inteface for picking posts 10 10 * Apply to any post / page / custom post-type 11 * Implement with the \[fcppbk\]shortcode11 * Implement with the `\[fcppbk\]` shortcode 12 12 * It minifies the css before printing 13 13 * Polylang friendly … … 21 21 * Install and activate the plugin 22 22 * Go to "Settings" -> "Posts by Query" to change the plugin settings 23 * Implement the shortcode \[fcppbk\]where you want the posts to be printed23 * Implement the shortcode `\[fcppbk\]` where you want the posts to be printed 24 24 * 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 23 23 ['Default thumbnail', 'image', [ 'comment' => 'This image is shown, if a post doesn\'t have the featured image', 'className' => 'image' ]], 24 24 ['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' ]], 26 26 ['"Read more" text', 'text', [ 'placeholder' => __( 'Read more' ) ]], 27 27 ], -
fcp-posts-by-search-query/trunk/inc/shortcode.php
r2944709 r2982729 154 154 'date' => isset( $settings['hide-date'] ) ? '' : get_the_date( '', $p ), 155 155 '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 ) ), 157 157 'category' => empty( $categories ) ? '' : esc_html( $categories[0]->name ), 158 158 'category_link' => empty( $categories ) ? '' : get_category_link( $categories[0]->term_id ), -
fcp-posts-by-search-query/trunk/posts-by-query.php
r2982112 r2982729 1 1 <?php 2 2 /* 3 Plugin Name: FCPPosts by Search Query4 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. 63 Plugin Name: 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. Print with the shortcode <code>[fcppbk]</code> 5 Version: 1.0.7 6 6 Requires at least: 5.8 7 7 Tested up to: 6.3 8 8 Requires PHP: 7.4 9 9 Author: Firmcatalyst, Vadim Volkov, Aude Jamier 10 Author URI: https://firmcatalyst.com 10 Author URI: https://firmcatalyst.com/about/ 11 11 License: GPL v3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 22 22 define( 'FCPPBK_URL', plugin_dir_url( __FILE__ ) ); 23 23 define( 'FCPPBK_DIR', plugin_dir_path( __FILE__ ) ); 24 define( 'FCPPBK_BSN', plugin_basename(__FILE__) ); 24 25 25 26 … … 37 38 }); 38 39 40 // link the settings from the plugins list 41 add_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 }); 39 46 40 47 -
fcp-posts-by-search-query/trunk/readme.txt
r2982112 r2982729 1 === FCPPosts by Search Query ===1 === Posts by Search Query === 2 2 Contributors: Firmcatalyst 3 3 Tags: posts, list posts … … 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 Author: Firmcatalyst, Vadim Volkov, Aude Jamier 9 Author URI: https://firmcatalyst.com 9 Author URI: https://firmcatalyst.com/about/ 10 10 License: GPL v3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html 12 12 13 FCPPosts by Search Query13 Posts by Search Query 14 14 15 15 == Description == 16 16 17 Implement a list of relevant posts to particular pages with a search query or exact list of posts. Easy pick and add. 17 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 `[fcppbk]` 18 18 19 19 = Features = … … 23 23 * Simple and flexible inteface for picking posts 24 24 * Apply to any post / page / custom post-type 25 * Implement with the \[fcppbk\]shortcode25 * Implement with the `\[fcppbk\]` shortcode 26 26 * It minifies the css before printing 27 27 * Polylang friendly … … 35 35 * Install and activate the plugin 36 36 * Go to "Settings" -> "Posts by Query" to change the plugin settings 37 * Implement the shortcode \[fcppbk\]where you want the posts to be printed37 * Implement the shortcode `\[fcppbk\]` where you want the posts to be printed 38 38 * Go to the post / page editor, scroll to the bottom and add the search query or pick particular posts to be printed 39 39
Note: See TracChangeset
for help on using the changeset viewer.