keesiemeijer
Forum Replies Created
-
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Styling issues with editor-blockHi burlyqlady
You don’t need to use the editor block format if you don’t like it, or if it’s not supported by your theme. None of it is styled by this plugin. I should make this more obvious in the documentation.
If you need help in styling your site I suggest hiring a developer.
Yes it should.
Try deactivating all other plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
Hi vrygdd
Does this also happen with a shortcode in the content itself?
Do you use any other filters of this plugin?Forum: Reviews
In reply to: [Related Posts by Taxonomy] Works great. Polite, prompt dev.Thanks for the nice review 🙂
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Increasing displayed posts beyond 5.I’m glad you’ve got your issue solved 🙂
And thanks for your review
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Increasing displayed posts beyond 5.Try it with this in your child theme’s functions.php file
add_action( /* Pre-Elementor 2.5.1 use this: 'elementor_pro/posts/query/lwp_related_posts', */ 'elementor/query/lwp_related_posts', 'lwp_3266_related_posts' ); function lwp_3266_related_posts( $query ) { global $post; $query->set( 'post__in', km_rpbt_get_related_posts( $post->ID, array( 'fields' => 'ids', 'posts_per_page' => 6, ) ) ); }Forum: Plugins
In reply to: [Related Posts by Taxonomy] Increasing displayed posts beyond 5.Hi asknlearn
I hope you meant editing theme files instead of (WordPress or plugin) core files.
Create a child theme if you need to edit theme files. That way the changes are permanent, even if the theme updates.
Do you use the widget or shortode or some other method to display the related posts?
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Link caption and make all thumbnails same sizeImage sizes don’t work for gallery format editor_block. This is how the Gutenberg editor does it at the moment. See https://github.com/WordPress/gutenberg/issues/1450
Don’t use this format if it’s not working for you. I’m preparing this plugin for a related posts block. I’m just following how the WP gallery block does it at the moment.
Use the link_caption option to link post titles (be aware you might need to style them yourself)
https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#link-captionOr for the widget use this filter in your (child) theme’s functions.php file
add_filter( 'related_posts_by_taxonomy_widget_args', 'rpbt_widget_filter', 10, 2 ); function rpbt_widget_filter( $args, $instance ) { $args['link_caption'] = true; return $args; }btw:
consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost. Or create a plugin with the code above.I don’t really have a clue why this is happening other than it’s somehow hidden by CSS or a conflict with your theme. The widgets are all registered in the same function. Because the dropdown shows in the other widgets I have no idea why it will not display in the calendar widget.
For testing add this to your theme’s functions.php file
add_filter( 'widget_form_callback', 'cptda_widget_form_callback', 10, 2 ); function cptda_widget_form_callback( $instance, $_this ) { $calendar = $_this instanceof CPTDA_Widget_Calendar; echo '<pre>'; var_dump( $calendar ); echo '</pre>'; // Check if plugin calendar class is actually used if ( $calendar ) { // It's used $plugin = cptda_date_archives(); // Display custom post types with date archives added. echo '<pre>'; print_r( $plugin->post_type->get_post_types( 'names' ) ); echo '</pre>'; } else { // Not used echo 'Class used is ' . get_class( $_this ); } return $instance; }Open the calendar widget and copy the information at the top of the widget and post it here. After that remove the code from your theme’s functions.php file
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Link caption and make all thumbnails same sizeHi taadike
Can you check if a normal editor gallery block with the same images has the same output.
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesPages, by default, don’t have taxonomies. You’ll have to add them yourself. The plugin will display the Page post type (in the widget) if it has taxonomies. This is because most users don’t add taxonomies to pages.
Did you add terms from the
thingstaxonomy to pages, so the plugin can find related posts (pages) with terms in common?Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesDo pages have any taxonomies registered to them?
If not you can try it with this in your (child) theme’s functions.php file
function rpbt_add_taxonomies_to_pages() { register_taxonomy_for_object_type( 'post_tag', 'page' ); register_taxonomy_for_object_type( 'category', 'page' ); } add_action( 'init', 'rpbt_add_taxonomies_to_pages' );btw:
consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost. Or create a plugin with the code above.Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesHi MDVG
The plugin should detect if Pages have taxonomies (registered). Can you explain some more of what it is you want to do
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Tested with WP 5.2 and PHP 7.3Thanks for letting me know Bjarne 🙂
You’re welcome 🙂