F2000.FR
Forum Replies Created
-
I emailed support@weglot.com and it’s now OK for me with the fixed version 🙂
Thanks.
Hello,
Some problems here since last update :
Notice: Undefined index: custom_name in /data/village/extron/santiago_fr/www/villa/wp-content/plugins/weglot/src/models/class-schema-option-v3.php on line 36
Notice: Undefined index: custom_code in /data/village/extron/santiago_fr/www/villa/wp-content/plugins/weglot/src/models/class-schema-option-v3.php on line 35
- This reply was modified 5 years, 2 months ago by F2000.FR.
Forum: Fixing WordPress
In reply to: How to show a shortcode at the end of my pageI respond to myself :
According to the documentation :
Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. This is similar to the way filter functions should behave, in that they should not produce expected side effects from the call, since you cannot control when and where they are called from.
So the correct way is :
function category_shortcode( $atts )
{
return ‘Hello world !’;
}