QuickeneR
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] [0.9.4] Cannot insert images from Media LibraryThank you Chouby, this fixes the problem.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] A function to list the installed languages ?Thank you Chouby, this looks like exactly what I need.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] A function to list the installed languages ?Sorry, I’ll try to explain myself better.
pll_the_languages() displays a language switcher – it is intended for the blog readers so they can choose a translation they prefer.
I was talking about the admin panel side. Polylang already adds an option to all the widgets that lets one choose for which language that widget will be displayed. This works fine for widgets that are somewhat self-contained. Recent Posts-type widgets, on the contrary, build their contents by making their own queries to the posts table. According to polylang documentation, one can get posts in one particular language by calling
$posts = get_posts(array(‘post_type’ => ‘post’, ‘lang’ => ‘fr’))
This additional parameter (lang = fr) is normally absent from the queries that such widgets are issuing. I was thinking of adding polylang support to one of such widgets (Flexible Recent Posts).This leads to the question of how to specify the desired languages in the widget’s settings. The most simple way is to have a textbox and type ‘fr’ or ‘fr,en’ there. But it would be better to have all the currently installed languages listed and checkboxes displayed next to them. So, is there a simple way (like calling a single function) of listing the installed languages ?
Went to the first blog from the link, the Huffington post, and what did I see? ‘Featured’, ‘Blog posts’, ‘Most popular on Huffpost’ (in the sidebar), and even ‘Social news’ are all hyperlinks. This is exactly what I want to do with FRP.
Your argument on titles vs. links escapes me completely. Why would you want to limit yourself to only one of these if you could mix them at will as appropriate? OK, I suppose if we were talking of a book in HTML, there would be no purpose of turning a chapter title into a link… hmm… actually, it could link back to the table of contents. Come to think of it, *everything* needs a potential to become a link, if you can find a good target for it. That’s how the entire Wikipedia works, btw.
Why do you think this is a bad practice? It is the most reasonable place for an all posts link. I tried using >>> as link title and placing it after the title but it looked not nearly as neat.