diogobento
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Types Order] Query Custom Post Types to Reorder PageI’ve tried this but it’s not doing the last condition:
function sc_pre_get_posts($query) { if (!is_admin() && $query->is_main_query()) { if ($query->is_home()) { $query->set('post_type', 'frontpage'); $query->set('posts_per_page', '-1'); } elseif ($query->is_post_type_archive('works')) { $query->set('post_type', array('works', 'education', 'transarkiv')); $query->set('posts_per_page', '-1'); } } elseif (is_admin() && is_page('order-post-types-works')) { $query->set('post_type', array('works', 'education', 'transarkiv')); $query->set('posts_per_page', '-1'); } return $query; } add_action('pre_get_posts','sc_pre_get_posts');
Just tested and still doesn’t work as expected. WordPress still generates new files, this time the new file being heavier than the original one!
Actually, JPEG always compresses files on save, even at 100%. I guess that’s what’s happening here. This snippet doesn’t stop wordpress auto-compression, it just makes wordpress compress the new image at 100%.
What I am looking for is a way for wordpress to use the original file, without any kind of compression or manipulation; just a plain copy of the original file.
Thanks.
Thank you! Great resource!
Haven’t tested it yet, but seems like it will solve this issue.Anyway, as a developer I would still like to understand why was wordpress still generating new files. Was this something removed from newer versions?
Cheers.
Forum: Plugins
In reply to: [Custom Post Type UI] Plugin translationDear Michael,
Thanks so much for your support.
That’s exactly the case. I have wordpress set to Portuguese in the settings, but I wish to keep the Custom Post Type plugin in English.
Is it possible? How should I proceed?
Best regards,
Diogo.Forum: Plugins
In reply to: [Custom Post Type UI] Plugin translationNow I’m confused! ??
There is a language folder inside the plugin’s folder… What is it for then?It automatically changed to portuguese on the last update and I don’t really like the translation. I wish to revert back to english.
Should I just delete the language files?
Thanks.
Forum: Plugins
In reply to: [PDF Embedder] Hide the toolbarThank you very much for your comments Dan.
I used CSS whenever possible, but had to edit the plugin to remove the word “Page” and some other stuff.
Best regards,
Diogo.Forum: Plugins
In reply to: [PDF Embedder] Multiple pdfsIf anyone else facing the same problem, this worked for me:
$(".tabs").on("toggled", function (event, tab) { $(".pdfemb-viewer").pdfEmbedder(); });
Cheers.
Forum: Plugins
In reply to: [PDF Embedder] Multiple pdfsHi Dan,
Thanks so much for your reply.
Any hints on how to reinit the plugin after a tab change? Is there any method to reinit the plugin from within?As a temporary fix, I’ve set max-width to the pdfemb-viewer container.
Regards,
Diogo.Forum: Plugins
In reply to: [Theme My Login] Cancel wp-admin redirectionHello Jeff,
Simply put, I need that the wp-admin doesn’t redirect to TML login.
Thanks in advance,
Diogo.Forum: Plugins
In reply to: [Polylang] Polylang dropdown list not linking…I actually don’t want the flags, sorry for not stating that.
But the style is as shown on the examples.Easier to achieve with listing or dropdown?
Thanks.
Forum: Plugins
In reply to: [Polylang] Polylang dropdown list not linking…Thanks for your reply Chouby.
But I believe it was working before… Well, maybe not, I’ve already tried so many things.
But there is no polylang/include/widget.php…
Do you mean widget-languages.php?Which piece of code should I copy? Is it the javascript?
Btw, which format would you recommend if I want a switcher like this one (https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/10/buddypress-bar.jpg) or this one (https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/12/language-switcher-designer.png)?
Forum: Plugins
In reply to: [Polylang] Polylang dropdown language switcherSorry, forgot to close the tag…
I want that the current language in the dropdown language switcher doesn’t repeat.
Something like this:
https://www.ixtendo.com/demo/polyglot-language-switcher-jquery-plugin-2.2/index.htmlWhat should I do? Is it CSS or JS related?
Thanks.
Forum: Hacks
In reply to: List posts by year, 6 per page.Sorry, my mistake, it is working properly and the first solution solved the case. Well, sort of; now the pagination is missing. But that’s another topic.
Forum: Hacks
In reply to: List posts by year, 6 per page.??
Forum: Hacks
In reply to: List posts by year, 6 per page.Now it shows 1 post per year!!