David
Forum Replies Created
-
Forum: Plugins
In reply to: [MultilingualPress] Can't get language codeHey there,
the article you linked mostly describes how to get translations. MLP provides a function to get the ?locale? (language code) for the current blog:
mlp_get_current_blog_language()
An alternative is
mlp_get_blog_language( int $blog_id )
if you want to get the language for any blog by ID.Forum: Plugins
In reply to: [MultilingualPress] Update to 2.2.0 on WP 4.3 broke site "Invalid table name"You’re welcome. Here are some hints for changing the table prefix on an existing install:
https://wordpress.stackexchange.com/questions/138932/changing-the-wp-db-prefix-after-installation
Forum: Plugins
In reply to: [MultilingualPress] Update to 2.2.0 on WP 4.3 broke site "Invalid table name"Version 2.2.0 performs a check on the table prefix for compatibility reasons. The table prefix:
- must contain only alphanumeric characters like
a-z
,0-9
and underscore_
- must consists of at least one character
- must not consists of more than 45 characters
- the first character must not be a number
This check comes form the pro version we merged with the free version. Background is, that the table name should be used in SQL statements without quotes
`.
For the moment the only solution is to adapt the table prefix to the requirements.
Just for interest: what’s your table prefix?
Forum: Plugins
In reply to: [MultilingualPress] Update to 2.2.0 on WP 4.3 broke site "Invalid table name"Am I right that your table prefix is set to
table_prefix_
?Forum: Plugins
In reply to: [MultilingualPress] menu not switching language or locationHi ghufran younis,
can you tell us, what theme you’re using?
What menu are you talking about? The language-switcher menu or the nav-menu managed by WordPress?Forum: Plugins
In reply to: [MultilingualPress] change the default languageHi Fernando,
would you be so kind and explain, what do you mean by this sentence:
As I can make default charge in English, that is, it is dominio.com (ENGLISH) dominio.com/es (SPANISH), dominio.com/fr (FRENCH) ????
I’m not sure about what do you want to achieve.
Forum: Plugins
In reply to: [Frontend Checklist] Feature Request: enhance the semantic of the list markupThanks for the quick response, Jonas.
I guess you’re shuning the usage of a separate stylesheet for your plugin which would solve the problem with the list bullets.
Of course I could wrap a div around the shortcode but it’s hard to explain my client they should write HTML in an CMS.
At least a class-name for the paragraph or a filter on the output would make things much easier.
- must contain only alphanumeric characters like