soarerobertdaniel7
Forum Replies Created
-
Glad to hear it and thanks for reporting this issue!
The WPLM plugin made some internal changes in the WordPress environment and caused a weird behavior on the Posts Block. The fix will be shipped in the next version.
If you need it right now, the fix can be applied manually with a text editor like Notepad. Also, you can use the WPIDE plugin to access the files directly from the WordPress interface.
1. Go to
wp-content/plugins/otter-blocks/vendor/codeinwp/gutenberg-blocks/inc/render
2. Open the file: class-posts-grid-block.php
3. Around line 138 you can see the code that looks the same as the one below.$recent_posts = wp_get_recent_posts( array( 'numberposts' => $attributes['postsToShow'], 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], 'offset' => $attributes['offset'], 'category' => $categories, ) );
4. After
'category' => $categories,
you need to add the following line:'suppress_filters' => false
5. In the end, the code will be
$recent_posts = wp_get_recent_posts( array( 'numberposts' => $attributes['postsToShow'], 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], 'offset' => $attributes['offset'], 'category' => $categories, 'suppress_filters' => false ) );
- This reply was modified 4 years, 1 month ago by soarerobertdaniel7.
- This reply was modified 4 years, 1 month ago by soarerobertdaniel7.
Hi, thanks for reporting this issue.
The posts are indeed identical as content, but their link addresses are different.
The first post has the link address: https://oskanimalcare.com/osk-animal-care-in-kaohsiung-sep-2020-sixth-formosa-vet-congress/
The second has: https://oskanimalcare.com/osk-animal-care-in-kaohsiung-sep-2019-fifth-formosa-vet-congress-2/?lang=enWe will investigate this problem and please check if there is a misconfiguration in WPLM that may cause this issue.