How to add a PHP scripts into WordPress

You could basically create a simple plugin, that will generate a shortcode. The function of this shortcode would be displaying the required images. You can choose between Ajax or maybe using the embedded PHP timer to trigger Ajax to retrieve the images. Then you embed this shortcode in your post or page (wherever you wish … Read more

Polylang and template files

One option is to create a single category.php file with conditionals. So, you would have something like this: <?php if(is_category(‘one’) || is_category(‘un’) { // your code here } elseif(is_category(‘two’) || is_category(‘deux’) { // your code here } ?> This way you can still output different code per category, but you won’t have to copy category-one.php … Read more

HELP: cannot log into wordpress. PHP error

When you get that polite ‘white screen of death’, you’ll find the problem in the error.log file in the root of your site (perhaps in the error.log file in wp-admin, if the error was caused by an admin-level program). You can renamed the plugins folder to temporarily disable all plugins. But the error.log file will … Read more