flavio93zena
Forum Replies Created
-
Forum: Plugins
In reply to: [Display Posts - Easy lists, grids, navigation, and more] Read More ButtonThat requires some fiddling about with the page. Make a test page, assign a custom class to that list and link me to it, I may come up with something to hide it.
Hello, I think the end-result you are looking for is pretty much this one: https://www.ads-software.com/support/topic/display-in-default-paginated-order-but-start-with-some-peatured-posts/
And then you can exclude the featured ones with the ignore_sticky_posts=true rather than going with exclude ??Absolutely hilarious that you reply like this and call it “improvements”.
Did you not read the numbered list I made?1) Removed an huge function within the gallery which made older galleries made with the shortcode for it to work. Which means all the older galleries are borked – images no longer clickable, no more fancybox, errors in browser console log. 2) Removed support for classic editor, leaving only Gutenberg and Elementor (both heavy, slow and buggy). 3) Kept the shortcode functionality, but JUST for the Pro version, so if you want to keep using your shortcodes, you are FORCED to buy it. 4) Massively increased the amount of characters necessary to insert a gallery with the same images and settings. One of my galleries went from 191 to 9591 characters, not joking.
Removing the whole way previous galleries worked is just one point out of four that makes the newest update a lot worse than 2.4.19, all of which were undocumented too.
The good news, for me at least, is that we only have a few galleries and we can replace all of them and the whole plugin eventually. I am, however, thinking about sites that have thousands (if any), that will be completely broken with this so-called “update” and good luck editing thousands of galleries to keep up with you, making them 20 times longer to get the same result too.Forum: Reviews
In reply to: [Classic Editor] can you add a dark modehttps://www.ads-software.com/plugins/html-editor-syntax-highlighter/
Which works on top of this one and enhances it, very good combination.
A dark mode for the WYSIWYG editor instead is not really possible, it defeats the purpose of the editor.Support was extremely unhelpful (as in, big waste of time) and the update broke everything basically. They removed the whole shortcode feature for the “lite” version and locked it behind the “Pro” version so people are forced to buy it to keep using it.
They also removed support for classic editor and kept it only for Gutenberg or Elementor.
All of this SILENTLY, none of this is mentioned in the patch notes!Moreover, the amount of code necessary to insert a gallery with the same settings is incredible – 191 html characters vs 9591 (no typos, seriously).
Reverting to 2.4.19 and never update is the best advice I can give. Will make sure to post a review about this “incident” too, people need to be informed about what kind of plugin they are installing.
Email sent, thanks!
In which case you’re better off asking Elementor authors, because it must be something filtering shortcodes for whatever reason. They surely know better.
For point 1) you would have to do one shortcode to display the featured ones with the “id” parameter, then you close that shortcode, open a new one and exclude the featured ones with “exclude” https://displayposts.com/docs/parameters/
Yay ??P.S.: You may want to wrap the featured one in a <div> or something to style it (via additional CSS, within the theme) as if it was included in the 2nd list or similar effects.
Have you tried these things? https://displayposts.com/dps_filter/display_posts_shortcode_post_class/
Sounds like it gets filtered out on Elementor side… Do other plugins work normally on those Elementor archive templates?
Hi, not sure about your point 1), but for point 2) you have to go to
/wp-content/plugins/Display-Posts-Pagination-master/display-posts-navigation.php
Find'prev_text' => 'Previous', 'next_text' => 'Next',
And change them potentially to
'prev_text' => 'Whatever for "Previous" in German', 'next_text' => 'Whatever for "Next" in German',
Updates to the pagination extension (if any) will break this and you will have to do it again, but it’s a one minute thing really ??
For point 1)… Hmm, needs some testing.
Alright, nevermind ??
For anyone else looking for a solution, here’s what you have to do: https://www.billerickson.net/code/polylang-support-for-display-posts-shortcode/
Add this to functions.php/** * Polylang support for Display Posts Shortcode * * @author Bill Erickson * @link https://www.ads-software.com/support/topic/display-posts-in-a-specific-language/ * * @param array $args, WP Query arguments * @param array $atts, Shortcode attributes * @return array $args * */ function be_polylang_support_dps( $args, $atts ) { if( !empty( $atts['lang'] ) ) $args['lang'] = esc_attr( $atts['lang'] ); return $args; } add_filter( 'display_posts_shortcode_args', 'be_polylang_support_dps', 10, 2 );
And then you want to modify your queries to include the lang parameter as explained here: https://polylang.pro/doc/developpers-how-to/#query
Final code would be, in my case:
[display-posts category="smart-label" meta_key="_thumbnail_id" include_author="true" include_excerpt="true" excerpt_length="30" image_size="medium" wrapper="div" wrapper_class="display-posts-listing grid" posts_per_page="1000000" lang="it"]
Note the lang=”it” at the end.Thanks anyway ?? Let me just post (another) 5 stars review for one of the best plugins for WordPress.
- This reply was modified 4 years, 9 months ago by flavio93zena.