Problem with Date translation in WordPress

So to see how that date_i18n function works you can search for it, then hopefully find the documentation. That’s here: https://developer.wordpress.org/reference/functions/date_i18n/ It’s technical to read it, but what it says is that the first parameter on the function is not the date you want to translate but the date format that you want the date … Read more

Custom Rewrite Rule Removing Query String

Two parts to this answer: There are multiple things going wrong with your current example, and some of them are caused by WordPress’s rules making things more complicated. If you don’t mind editing your .htaccess file directly, try this. It avoids having to deal with some WordPress magic that isn’t making things easier here. It … Read more

Asking help regarding potential malware

Although this is not the place for hacking questions … a quick look seems to indicate attempts to get database credentials, and to upload files that can be executed later. One file it looks for (and tries to inlcude) is ‘command.php’. So take a look if that file is there. You could also look at … Read more

JS working when used normally but not in wordpress

Solved. The problem was that mojs has to be included between the <body></body> tags, and the wp_enqueue_script() function that enqueued mojs needed an empty string as argument just before the ‘true’ parameter (I forgot to specify that there was no required version number of that script). So, changing wp_enqueue_script(‘mojs’, ‘https://cdn.jsdelivr.net/mojs/latest/mo.min.js’, array(‘jquery’), true); wp_enqueue_script(‘favjs’, $favbtnscript, array(‘jquery’, … Read more

Changing the CSS with a plugin

You’re using the wrong hook to enqueue your styles: add_action(‘admin_enqueue_scripts’, ‘seizoenplugin_enqueue_styles’ ); As the name suggests, admin_enqueue_scripts is for enqueuing scripts and styles in the admin. To enqueue scripts on the front end use wp_enqueue_scripts: add_action(‘wp_enqueue_scripts’, ‘seizoenplugin_enqueue_styles’ );