Shortcodes: override a shortcode / change shortcode on the fly

Here’s what I’ve done:created a shortcode where I do [myplugin language=”fr” id=”5″][myplugin language=”us” id=”8″] and then, when this page is called, it calls myplugin twice. If it’s not on the right page, my plugin returns nothing. So, when this page is called: if it’s on a domain like “mydomain.fr” I just call do_shortcode(“othershortcode 5”) if … Read more

Having a two language website

Convert your site to a multisite, then … Create a second site. Set the site language to Persian in Options/General. Set the language of the first site to English. You can install a plugin to link translated posts like MultilingualPress (disclosure: I was the lead developer for that plugin for a long time). You can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)