pwozniak89
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Why strings are hardcoded to get_the_archive_title function ?Great
Forum: Fixing WordPress
In reply to: Why strings are hardcoded to get_the_archive_title function ?I’ve tested what you say : disable plugins, use default theme, but nothing works for me !
So I tried to reinstall WordPress and all is quite good now.Thanks @alanfuller
- This reply was modified 1 year, 7 months ago by pwozniak89.
Forum: Fixing WordPress
In reply to: Why strings are hardcoded to get_the_archive_title function ?When I click a category link on my theme, the title of my page is “Category: NAME”
I don’t understand, as I use French language for WordPress, why it is not “Catégorie : NAME” as Loco Translate Tool says the string “Category: %s” is translated by “Catégorie : %s”.
So I use my own “get_the_archive_title” with a filter :
add_filter( 'get_the_archive_title', 'my_archive_title');
That is just a question ! Why theses strings in get_the_archive_title() are not directly translated ?
Forum: Plugins
In reply to: [Feeds For Twitter] Not showing up on Firefox browserI use version 1.2.2
Forum: Plugins
In reply to: [Feeds For Twitter] Not showing up on Firefox browserYes !
On firefox it only shows : “Tweets by xxxxxxx”
and “Follow @xxxxxxx”Why ?
Forum: Developing with WordPress
In reply to: Set category with a hookadd_filter(‘wp_insert_post_empty_content’, …) doesn’t work anymore : category KO and image OK, as with add_action(‘wp_insert_post’, …)
So I write myself to the database after wp_set_post_categories($post_id, $in_category) !
DELETE FROM wp_term_relationships WHERE object_id = $post_id AND term_taxonomy_id <> $in;
Dirty but effective !
Forum: Developing with WordPress
In reply to: Set category with a hookThey are mine, user_role returns
2
in that case and category_list returns an array of integer value such asArray([0] => 153)
depending of user (every user has his own category, but they frequently forget to select their category ! That’s why I need to set category programmatically).
These functions work as if I create a new post which had no selected category, it adds category with good id (such as 153 in my example) to the new post.
But if I create a new draft from an existing post which had another category (for example 122), when I publish this post the old category (122) stills and the correct one (153) isn’t set…Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] TOC issueVersion 2.0.3 fixes the problem
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] TOC issueFor me :
When page contents 1 level of heading but not h1 it doesn’t work.
When page contents at least h1 level it works.without h1 level example (h2 only) : https://www.idfo.fr/index.php/actualites/a-la-une/
with h1 level example (h1 and h4) : https://www.idfo.fr/index.php/metier-carriere/acces-carriere/acces-a-la-fonction/Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] TOC issueSame issue for me !
https://www.idfo.fr/index.php/ressources/id-flash/id-flash-archives/
Javascript console says :Uncaught DOMException: Document.querySelector: '#2021-2022' is not a valid selector table-of-contents.min.js:1 _scroll https://www.idfo.fr/wp-content/plugins/ultimate-addons-for-gutenberg/assets/js/table-of-contents.min.js?ver=2.0.2:1
Hi,
I have no other wordpress running on this server…
I tried to change locales from the ubuntu server but nothing changes.
I will try to find other places where are misformatted numbers.Thanks.
I think the problem is that the “K” symbol is replaced by ” 000″ in fr-fr
And here a screenshot with fr-ca
And here a screenshot of my dashboard.
We can see correct formatting for WordPress information and wrong formatting for Site KitHi,
With fr-ca or fr-be number are correctly formatted ! (2,2K for 2245 or 1,6K for 1557)
When I roll back to fr-fr issue occurs.Thanks.