WordPress: Access a plugin from within a theme

The easiest approach might be to use do_shortcode(); for example:

<?php 
echo do_shortcode(''); 
?>

You just need to pass the appropriate gallery ID. You can also pass any of the other valid shortcode parameters, such as “columns”, “size”, etc.

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