Installing plugins on installation/activation

Yes, though its slightly complicated by this bug, which I discuss on this post (original: http://stephenharris.info/deactivate-other-plug-ins-on-deactivation/) They actually handle deactivating, rather than activating, but the principles are the same. At time of writing that trac ticket has a patch committed for 3.7. The following should activate ‘B’ when ‘A’ is activated: //This all goes inside … Read more

Mapping multiple URLs to same page

You can use the same answer as the question you referred to (I have answered it). Here’s how you would change to pass the arguments: <?php add_action(‘init’, ‘add_my_rule’); function add_my_rule() { global $wp; $wp->add_query_var(‘args’); add_rewrite_rule(‘test\/finaldestination\/(.*)’,’index.php?pagename=about&args=$matches[1]’,’top’); } ?> Assuming ‘finaldestination’ stays the same always, and the pagename (slug) is ‘about’ (you can change both). Apply your … Read more

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