Jeremy Varnham
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF.js Viewer] Microsoft Defender Blocking Content(Edit)
- This reply was modified 1 year, 7 months ago by Jeremy Varnham.
Forum: Plugins
In reply to: [Polylang] Version 3.4 invalid argument errorResetting the permalinks solved ”?front-end strings are no longer translated” (still on 3.3.3).
I’ll clone and test upgrading as suggested at the weekend.Thanks
Forum: Plugins
In reply to: [Polylang] Version 3.4 invalid argument errorThanks for your reply. I’ll need a few days to arrange this test. Thanks.
Forum: Plugins
In reply to: [Reading Time WP] Load Text DomainAdding the above only effects the plugin options page. However, the front-end display is not effected.
The default behavior at the moment is:
- Using Insert Reading Time before content / excerpt:
Use strings for label/postfix entered on option page (i.e. one language only) - Using shortcode:
-
[rt_reading_time]
Display the number only -
[rt_reading_time label=”” postfix=”” postfix_singular=""]
Display the number only -
[rt_reading_time label=”Reading Time:” postfix=”minutes” postfix_singular="minute"]
Use strings as entered in shortcode (one language only)
In what scenario are the default translated strings supposed to display? I realize that translating any custom strings entered on the options page would require integration of WPML’s icl_register_string, for example, but there should be a way of showing the default non-English strings.
Perhaps, using shortcode:
-
[rt_reading_time]
Display the default strings in active language -
[rt_reading_time label=”” postfix=”” postfix_singular=""]
Display the number only [rt_reading_time label=”Reading Time:” postfix=”minutes” postfix_singular="minute"]
Use strings as entered in shortcode (one language only)
- This reply was modified 6 years, 3 months ago by Jeremy Varnham.
- This reply was modified 6 years, 3 months ago by Jeremy Varnham.
Forum: Plugins
In reply to: [Reading Time WP] Its not compatible with persian.arabic websitesForum: Plugins
In reply to: [Reading Time WP] Plugin can’t read hebrew wordsThis worked for me:
https://stackoverflow.com/questions/23015600/str-word-count-for-non-latin-words/23015645#23015645It counts spaces between words instead of counting the words.
i.e. Change this:
rt-reading-time.php line 130
$word_count = str_word_count( $rt_content );
to this:
$word_count = count( preg_split( '/\s+/', $rt_content ) );
(Same issue as: https://www.ads-software.com/support/topic/its-not-compatible-with-persian-arabic-websites/)
Hi Peter,
Here’s a site with Twenty Fifteen and no other plugins. The only configuration change made is to select slide side “right”.
https://dev.abuyasmeen.com/wp-themes/
Thanks,
Jeremy
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] RTL switchingSince you already have the option to select left, right, top, or bottom, would it be possible to make that an option that is selectable by way of the shortcode?
Since mine is quite a niche case, I imagine this may be the most flexible approach, as it places the onus of language detection, option selection, and additional CSS in the hands of theme developers, while also having potential utility in alternative scenarios.
Forum: Plugins
In reply to: [Co-Authors Plus] Custom display multiple authorsFrom the FAQ:
How do I add Co-Authors Plus support to my theme?
If you’ve just installed Co-Authors Plus, you might notice that the bylines are being added in the backend but aren’t appearing on the frontend. You’ll need to add the template tags to your theme before the bylines will appear.So:
<b>By <?php if ( function_exists( 'coauthors_posts_links' ) ) { coauthors_posts_links(); } else { the_author_posts_link(); } ?></b> <br><i><?php $value = get_cimyFieldValue(get_the_author_ID(), 'TITLE'); echo cimy_uef_sanitize_content($value); ?></i>
Forum: Plugins
In reply to: [Co-Authors Plus] Template tag for username<?php coauthors_wp_list_authors(); ?>
Forum: Plugins
In reply to: [Co-Authors Plus] remove "and" in the author list<?php coauthors_posts_links(null,', '); ?>
Forum: Plugins
In reply to: [Co-Authors Plus] "Posted by" has disappearedExcellent.
Forum: Plugins
In reply to: [Co-Authors Plus] Not Working WordPress 4.0?Not a solution, but worth keeping an eye on the github thread: Guest Author Page
Forum: Plugins
In reply to: [Co-Authors Plus] All Guest AuthorsI haven’t tested this, but take a look at this method: https://gist.github.com/nciske/5885607
Forum: Plugins
In reply to: [Co-Authors Plus] "Posted by" has disappeared“It actually shows the code itself “
Make sure you wrap it in <?php ?>